diff options
author | Rob Austein <sra@hactrn.net> | 2007-12-22 03:31:28 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-12-22 03:31:28 +0000 |
commit | 4d6552f5d61760b939d4e5f2b90a59d15d04575d (patch) | |
tree | de2c31b1a45829583c3235a05a103347a035863a /scripts/rpkid.py | |
parent | 3f20b36ed42efba0ee12317a4b8dbd7c88c24e82 (diff) |
Checkpoint
svn path=/scripts/irdb.py; revision=1415
Diffstat (limited to 'scripts/rpkid.py')
-rwxr-xr-x | scripts/rpkid.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/rpkid.py b/scripts/rpkid.py index ef8ff2be..bd41ca67 100755 --- a/scripts/rpkid.py +++ b/scripts/rpkid.py @@ -25,12 +25,11 @@ def left_right_handler(query, path): reply = rpki.cms.xml_sign(r_elt, gctx.cms_key, gctx.cms_certs) return 200, reply except lxml.etree.DocumentInvalid: - print "Received reply document does not pass schema check:" - print lxml.etree.tostring(r_elt, pretty_print = True) - traceback.print_exc() + rpki.log.warning("Received reply document does not pass schema check: " + lxml.etree.tostring(r_elt, pretty_print = True)) + rpki.log.warning(traceback.format_exc()) return 500, "Schema violation" except Exception, data: - traceback.print_exc() + rpki.log.error(traceback.format_exc()) return 500, "Unhandled exception %s" % data def up_down_handler(query, path): @@ -46,7 +45,7 @@ def up_down_handler(query, path): reply = child.serve_up_down(gctx, query) return 200, reply except Exception, data: - traceback.print_exc() + rpki.log.error(traceback.format_exc()) return 400, "Could not process PDU: %s" % data def cronjob_handler(query, path): |