aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
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)