From 01697787912f143ab2b9a938e33c73c9a8a9ae0b Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 26 Apr 2016 20:07:41 +0000 Subject: 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 --- rp/rcynic/rcynicng | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rp/rcynic') diff --git a/rp/rcynic/rcynicng b/rp/rcynic/rcynicng index aee000e1..eccd247f 100755 --- a/rp/rcynic/rcynicng +++ b/rp/rcynic/rcynicng @@ -1389,7 +1389,8 @@ def main(): time.tzset() cfg = rpki.config.argparser(section = "rcynic", doc = __doc__, cfg_optional = True) - rpki.log.argparse_setup(cfg.argparser) + + cfg.add_logging_arguments() cfg.add_argument("-u", "--unauthenticated", help = "where to store unauthenticated data retrieved via rsycnc", @@ -1437,7 +1438,7 @@ def main(): global args args = cfg.argparser.parse_args() - rpki.log.init("rcynic", args) + cfg.configure_logging(args = args, ident = "rcynic") import django django.setup() -- cgit v1.2.3