diff options
author | Rob Austein <sra@hactrn.net> | 2014-05-29 19:18:40 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-05-29 19:18:40 +0000 |
commit | e6047c9f737275d898d88737719dd09a6ee4f25c (patch) | |
tree | 2741504894c594473b574146b632d0433a5b7186 /ca/tests/yamlconf.py | |
parent | 839c6b3650472ac6c66fe0dadc87ac419a5a70d4 (diff) |
Provide our own logging Formatter class rather than straining to
subclass the stock one. Replace all uses of rpki.log.traceback() with
logging package .exception() calls. Use LoggingAdapter for all the
whacky per-stream logging code in rpki.http. Fix default logging
priority for non-daemon programs like rpkic.
svn path=/trunk/; revision=5843
Diffstat (limited to 'ca/tests/yamlconf.py')
-rw-r--r-- | ca/tests/yamlconf.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ca/tests/yamlconf.py b/ca/tests/yamlconf.py index 56bec483..7b737836 100644 --- a/ca/tests/yamlconf.py +++ b/ca/tests/yamlconf.py @@ -34,6 +34,7 @@ import os import sys import yaml import time +import logging import argparse import subprocess import lxml.etree @@ -672,7 +673,7 @@ def main(): quiet = args.quiet yaml_file = args.yaml_file - rpki.log.init("yamlconf") + rpki.log.init("yamlconf", argparse.Namespace(log_level = logging.DEBUG, log_stream = sys.stdout)) # Allow optional config file for this tool to override default # passwords: this is mostly so that I can show a complete working |