diff options
author | Rob Austein <sra@hactrn.net> | 2007-12-13 01:08:12 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-12-13 01:08:12 +0000 |
commit | 860f22425ed8e45de79309cf8839f25de6d0a1f2 (patch) | |
tree | 5523583034c467ed3568c08c4ef3cff9b90e8032 /scripts/irbe-setup.py | |
parent | 040eea32537b17fde27ece002a71cf90e616e55a (diff) |
Start on a syslog()-based logging system
svn path=/scripts/biz-certs/Bob-CA.srl; revision=1377
Diffstat (limited to 'scripts/irbe-setup.py')
-rw-r--r-- | scripts/irbe-setup.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/irbe-setup.py b/scripts/irbe-setup.py index 49ec32eb..71023b5f 100644 --- a/scripts/irbe-setup.py +++ b/scripts/irbe-setup.py @@ -6,7 +6,10 @@ engine for every registrant object in the IRDB. """ import os, MySQLdb, getopt, sys, lxml.etree, lxml.sax -import rpki.left_right, rpki.relaxng, rpki.cms, rpki.https, rpki.x509, rpki.config +import rpki.left_right, rpki.relaxng, rpki.cms, rpki.https +import rpki.x509, rpki.config, rpki.log + +rpki.log.init("irbe-setup") cfg = rpki.config.parser("irbe.conf") @@ -24,9 +27,8 @@ https_tas = rpki.x509.X509_chain(Auto_files = cfg.multiget("irbe-cli", "https- https_url = cfg.get( "irbe-cli", "https-url") def call_rpkid(pdu): - """Hand a PDU to rpkid and get back the response. Should be able to - steal most of this code from irbe-cli. Just throw an exception if - anything bad happens, no fancy error handling. + """Hand a PDU to rpkid and get back the response. Just throw an + exception if anything bad happens, no fancy error handling. """ pdu.type = "query" |