aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-05-28 18:12:39 +0000
committerRob Austein <sra@hactrn.net>2014-05-28 18:12:39 +0000
commit937db24e600d3b29d780575120250e47980de901 (patch)
tree684b40de5b92863085194be0fbe9cc6dfc0658fe /rpki/pubd.py
parentdad61b8efaca22afd13e452f618a74f1d50dbb38 (diff)
Whack all logging calls to use per-module logger objects.
svn path=/trunk/; revision=5837
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r--rpki/pubd.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py
index ec7be81e..0cb4c6fd 100644
--- a/rpki/pubd.py
+++ b/rpki/pubd.py
@@ -23,6 +23,7 @@ RPKI publication engine.
import os
import time
+import logging
import argparse
import sys
import re
@@ -38,6 +39,8 @@ import rpki.log
import rpki.publication
import rpki.daemonize
+logger = logging.getLogger(__name__)
+
class main(object):
"""
Main program for pubd.
@@ -79,14 +82,14 @@ class main(object):
prof.runcall(self.main)
finally:
prof.dump_stats(self.profile)
- rpki.log.info("Dumped profile data to %s" % self.profile)
+ logger.info("Dumped profile data to %s" % self.profile)
else:
self.main()
def main(self):
if self.profile:
- rpki.log.info("Running in profile mode with output to %s" % self.profile)
+ logger.info("Running in profile mode with output to %s" % self.profile)
self.sql = rpki.sql.session(self.cfg)