/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-02-28 19:24:48 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 382.
  • Revision ID: teddy@recompile.se-20190228192448-d5xrjokh5tfuh55y
mandos-ctl: Show warnings

* mandos-ctl: Show warnings (via the logging system).

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
import dbus
47
47
 
 
48
# Show warnings by default
 
49
if not sys.warnoptions:
 
50
    import warnings
 
51
    warnings.simplefilter("default")
 
52
 
48
53
log = logging.getLogger(sys.argv[0])
49
54
logging.basicConfig(level="INFO", # Show info level messages
50
55
                    format="%(message)s") # Show basic log messages
51
56
 
 
57
logging.captureWarnings(True)   # Show warnings via the logging system
 
58
 
52
59
if sys.version_info.major == 2:
53
60
    str = unicode
54
61