From e6047c9f737275d898d88737719dd09a6ee4f25c Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 29 May 2014 19:18:40 +0000 Subject: 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 --- 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 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 -- cgit v1.2.3