From 32efcaff8b0de30b7f3abb56dd195695530bcbfe Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 4 Nov 2016 13:59:20 +0800 Subject: bin: Update "log_stream" and "loglevel" handling * bin/fg21sim: Simplify the "log_stream" assignment * bin/fg21sim-webui: Also enable debug logging when turning on debug flag for the tornado; also update the docstring a little. --- bin/fg21sim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bin/fg21sim') diff --git a/bin/fg21sim b/bin/fg21sim index 42bdcca..e605c97 100755 --- a/bin/fg21sim +++ b/bin/fg21sim @@ -38,11 +38,7 @@ def main(): sep="\n", file=sys.stderr) check_configs(configs) - if args.quiet: - log_stream = "" - else: - log_stream = None - + log_stream = "" if args.quiet else None setup_logging(dict_config=configs.logging, level=args.loglevel, stream=log_stream, -- cgit v1.2.2