From c19797bb2e334018ee6ce16b58fae44419a69a05 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 15 Sep 2020 18:10:39 +0000 Subject: [PATCH] Added remove log on exit argument to run script --- run-onionr-node.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/run-onionr-node.py b/run-onionr-node.py index b901db67..b32a4a8c 100755 --- a/run-onionr-node.py +++ b/run-onionr-node.py @@ -79,6 +79,9 @@ parser.add_argument( parser.add_argument( '--animated-background', help='Animated background on webui index. Just for looks.', type=int, default=0) +parser.add_argument( + '--keep-log-on-exit', help='Onionr can keep or delete its log file on exit', + type=int, default=0) args = parser.parse_args() p = Popen([sub_script, 'version'], stdout=DEVNULL) @@ -99,6 +102,10 @@ if not args.use_tor: config['transports']['tor'] = False if not args.animated_background: config['ui']['animated_background'] = False +if args.keep_log_on_exit: + config['log']['file']['remove_on_exit'] = True +else: + config['log']['file']['remove_on_exit'] = False config['general']['display_header'] = False config['general']['security_level'] = args.security_level