diff options
Diffstat (limited to 'ca')
-rw-r--r-- | ca/tests/smoketest.py | 8 | ||||
-rw-r--r-- | ca/tests/testpoke.py | 5 |
2 files changed, 5 insertions, 8 deletions
diff --git a/ca/tests/smoketest.py b/ca/tests/smoketest.py index 42e259e6..b8472ba3 100644 --- a/ca/tests/smoketest.py +++ b/ca/tests/smoketest.py @@ -301,7 +301,7 @@ def main(): except Exception, e: logger.info("Event loop exited with an exception: %r" % e) - rpki.log.traceback() + rpki.log.traceback(logger) finally: @@ -631,7 +631,7 @@ class allocation(object): def done(e): if isinstance(e, Exception): - rpki.log.traceback() + rpki.log.traceback(logger) raise e cb() @@ -648,7 +648,7 @@ class allocation(object): def done(e): if isinstance(e, Exception): - rpki.log.traceback() + rpki.log.traceback(logger) raise e cb() @@ -1296,7 +1296,7 @@ def call_pubd(pdus, cb): def call_pubd_eb(e): logger.warning("Problem calling pubd: %s" % e) - rpki.log.traceback() + rpki.log.traceback(logger) rpki.http.client( url = q_url, diff --git a/ca/tests/testpoke.py b/ca/tests/testpoke.py index fd5ab206..bf1e1e43 100644 --- a/ca/tests/testpoke.py +++ b/ca/tests/testpoke.py @@ -53,9 +53,6 @@ args = parser.parse_args() rpki.log.init("testpoke") -if args.debug: - rpki.log.set_trace(True) - yaml_data = yaml.load(args.yaml) yaml_cmd = args.request @@ -133,7 +130,7 @@ def do_revoke(): dispatch = { "list" : do_list, "issue" : do_issue, "revoke" : do_revoke } def fail(e): # pylint: disable=W0621 - rpki.log.traceback(args.debug) + rpki.log.traceback(logger, args.debug) sys.exit("Testpoke failed: %s" % e) cms_ta = get_PEM("cms-ca-cert", rpki.x509.X509) |