aboutsummaryrefslogtreecommitdiff
path: root/rpki/rpkic.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-04-26 20:07:41 +0000
committerRob Austein <sra@hactrn.net>2016-04-26 20:07:41 +0000
commit01697787912f143ab2b9a938e33c73c9a8a9ae0b (patch)
tree8065ac9a88d697678de0ad68c13683c6c2f5dd69 /rpki/rpkic.py
parent1447a61b235699163f186ef689ca8eaf898ee478 (diff)
Further consolidation of config file parsing, command line parsing,
and logging setup. Most programs now use the unified mechanism, although there are still a few holdouts: the GUI, which is a special case because it has no command line, and the rpki-rtr program, which, for historical reasons has its own implementation of the logging setup infrastructure. svn path=/branches/tk705/; revision=6390
Diffstat (limited to 'rpki/rpkic.py')
-rw-r--r--rpki/rpkic.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpki/rpkic.py b/rpki/rpkic.py
index 755e9102..e297c4d8 100644
--- a/rpki/rpkic.py
+++ b/rpki/rpkic.py
@@ -128,7 +128,6 @@ class main(Cmd):
self.main(args)
def main(self, args):
- rpki.log.init("rpkic")
self.read_config()
if self.interactive:
self.cmdloop_with_history()
@@ -159,6 +158,11 @@ class main(Cmd):
try:
cfg = rpki.config.parser(set_filename = self.cfg_file, section = "myrpki")
+ cfg.configure_logging(
+ args = argparse.Namespace(
+ log_destination = "stderr",
+ log_level = "warning"),
+ ident = "rpkic")
cfg.set_global_flags()
except IOError, e:
sys.exit("%s: %s" % (e.strerror, e.filename))