diff options
author | Rob Austein <sra@hactrn.net> | 2016-04-26 20:07:41 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-04-26 20:07:41 +0000 |
commit | 01697787912f143ab2b9a938e33c73c9a8a9ae0b (patch) | |
tree | 8065ac9a88d697678de0ad68c13683c6c2f5dd69 /ca/tests/smoketest.py | |
parent | 1447a61b235699163f186ef689ca8eaf898ee478 (diff) |
Further consolidation of config file parsing, command line parsing,
and logging setup. Most programs now use the unified mechanism,
although there are still a few holdouts: the GUI, which is a special
case because it has no command line, and the rpki-rtr program, which,
for historical reasons has its own implementation of the logging setup
infrastructure.
svn path=/branches/tk705/; revision=6390
Diffstat (limited to 'ca/tests/smoketest.py')
-rw-r--r-- | ca/tests/smoketest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ca/tests/smoketest.py b/ca/tests/smoketest.py index 6479883e..2bce936b 100644 --- a/ca/tests/smoketest.py +++ b/ca/tests/smoketest.py @@ -158,8 +158,11 @@ def main(): Main program. """ - rpki.log.init(smoketest_name, argparse.Namespace(log_level = logging.DEBUG, - log_handler = lambda: logging.StreamHandler(sys.stdout))) + log_handler = logging.StreamHandler(sys.stdout) + log_handler.setFormatter(rpki.config.Formatter("smoketest", log_handler, logging.DEBUG)) + logging.getLogger().addHandler(log_handler) + logging.getLogger().setLevel(logging.DEBUG) + logger.info("Starting") rpki.http.http_client.timeout = rpki.sundial.timedelta(hours = 1) |