From 85288583e1f28e13a06f23d5d5d14bd84bb9511c Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 12 Apr 2018 13:52:05 +0800 Subject: [PATCH] rename --logger argument to indicate usage than implementation --- nvchecker/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvchecker/core.py b/nvchecker/core.py index ba2879f..290e865 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -22,8 +22,8 @@ def add_common_arguments(parser): parser.add_argument('-l', '--logging', choices=('debug', 'info', 'warning', 'error'), default='info', help='logging level (default: info)') - parser.add_argument('--logger', choices=['stdlib', 'structlog'], - default='stdlib', + parser.add_argument('--logger', choices=['pretty', 'json'], + default='pretty', help='select which logger to use') parser.add_argument('-V', '--version', action='store_true', help='show version and exit') @@ -32,7 +32,7 @@ def add_common_arguments(parser): def process_common_arguments(args): '''return True if should stop''' - if args.logger == 'stdlib': + if args.logger == 'pretty': slogconf.fix_logging() nicelogger.enable_pretty_logging( getattr(logging, args.logging.upper()))