diff options
author | Rob Austein <sra@hactrn.net> | 2014-05-30 17:08:31 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-05-30 17:08:31 +0000 |
commit | 3519e8117e959ec35fa701986215d5fb18e553f1 (patch) | |
tree | 6defac145f43d1fe1a6ab90bdef36d25a66b6d09 /ca/tests/yamltest.py | |
parent | 6cacde4474719bae1a1e6ba0876b9d3327054ae9 (diff) |
Move all the complexity of configuring the ten zillion kinds of
logging handlers up front to the argparse stage, thereby also giving
the application more control over the default logging configuration.
svn path=/trunk/; revision=5851
Diffstat (limited to 'ca/tests/yamltest.py')
-rw-r--r-- | ca/tests/yamltest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ca/tests/yamltest.py b/ca/tests/yamltest.py index 5d6686b4..59d58cd9 100644 --- a/ca/tests/yamltest.py +++ b/ca/tests/yamltest.py @@ -666,7 +666,8 @@ try: if args.pidfile is not None: open(args.pidfile, "w").write("%s\n" % os.getpid()) - rpki.log.init("yamltest", argparse.Namespace(log_level = logging.DEBUG, log_stream = sys.stdout)) + rpki.log.init("yamltest", argparse.Namespace(log_level = logging.DEBUG, + log_handler = lambda: logging.StreamHandler(sys.stdout))) # Allow optional config file for this tool to override default # passwords: this is mostly so that I can show a complete working |