=== modified file 'mandos' --- mandos 2019-08-24 14:43:51 +0000 +++ mandos 2019-08-24 14:46:13 +0000 @@ -92,6 +92,11 @@ if sys.version_info.major == 2: __metaclass__ = type +# Show warnings by default +if not sys.warnoptions: + import warnings + warnings.simplefilter("default") + # Try to find the value of SO_BINDTODEVICE: try: # This is where SO_BINDTODEVICE is in Python 3.3 (or 3.4?) and @@ -127,6 +132,7 @@ stored_state_file = "clients.pickle" logger = logging.getLogger() +logging.captureWarnings(True) # Show warnings via the logging system syslogger = None try: