From 3519e8117e959ec35fa701986215d5fb18e553f1 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 30 May 2014 17:08:31 +0000 Subject: 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 --- ca/tests/yamlconf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ca/tests/yamlconf.py') diff --git a/ca/tests/yamlconf.py b/ca/tests/yamlconf.py index 5025ef61..e9b6e391 100644 --- a/ca/tests/yamlconf.py +++ b/ca/tests/yamlconf.py @@ -673,7 +673,8 @@ def main(): quiet = args.quiet yaml_file = args.yaml_file - rpki.log.init("yamlconf", argparse.Namespace(log_level = logging.DEBUG, log_stream = sys.stdout)) + rpki.log.init("yamlconf", 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 -- cgit v1.2.3