X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/ff0fc3fa841805cb45013d4fdb3c0ca142b7a330..ec2c9312c36782c61b38e1c3bcdbe932685a9794:/hippotatlib/__init__.py diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index 8a26bee..7bdf4ea 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -634,7 +634,7 @@ just `+': all DFLAGs. try: (pss, pcs) = _cfg_process_putatives() - process_cfg(pss, pcs) + process_cfg(opts, pss, pcs) except (configparser.Error, ValueError): traceback.print_exc(file=sys.stderr) print('\nInvalid configuration, giving up.', file=sys.stderr) @@ -650,12 +650,13 @@ just `+': all DFLAGs. stdsomething_obs = twisted.logger.FilteringLogObserver( stderr_obs, [pred], stdout_obs ) - log_observer = twisted.logger.FilteringLogObserver( + global file_log_observer + file_log_observer = twisted.logger.FilteringLogObserver( stdsomething_obs, [LogNotBoringTwisted()] ) #log_observer = stdsomething_obs twisted.logger.globalLogBeginner.beginLoggingTo( - [ log_observer, crash_on_critical ] + [ file_log_observer, crash_on_critical ] ) def common_run():