aboutsummaryrefslogtreecommitdiff
path: root/rpkid/testpoke.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-10-16 02:58:36 +0000
committerRob Austein <sra@hactrn.net>2008-10-16 02:58:36 +0000
commitf1be919fbb6f780012ea55e5fd599852571999f3 (patch)
treec17cd0cc8847ddb90caf5f46b14b1f9ed3ac0109 /rpkid/testpoke.py
parent5955ada37f18ad5dc1a482abf6451db1535d259f (diff)
Minor logging cleanups. Don't show backtrace in testpoke unless
debugging. "valid_until" -> "valid_for" in test suite. svn path=/rpkid/rpki/rpki_engine.py; revision=2021
Diffstat (limited to 'rpkid/testpoke.py')
-rw-r--r--rpkid/testpoke.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/rpkid/testpoke.py b/rpkid/testpoke.py
index 00f3bab8..04517ce4 100644
--- a/rpkid/testpoke.py
+++ b/rpkid/testpoke.py
@@ -138,4 +138,10 @@ https_cert = get_PEM("ssl-cert", rpki.x509.X509)
https_certs = get_PEM_chain("ssl-cert-chain", https_cert)
https_ca_certs = get_PEM_chain("ssl-ca-certs")
-dispatch[yaml_req["type"]]()
+if debug:
+ dispatch[yaml_req["type"]]()
+else:
+ try:
+ dispatch[yaml_req["type"]]()
+ except Exception, edata:
+ print "Failed:", edata