From 860f22425ed8e45de79309cf8839f25de6d0a1f2 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 13 Dec 2007 01:08:12 +0000 Subject: Start on a syslog()-based logging system svn path=/scripts/biz-certs/Bob-CA.srl; revision=1377 --- scripts/irbe-setup.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/irbe-setup.py') 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" -- cgit v1.2.3