1
0

make "-v" (logging to stderr) work with commands

When running a command, file logging is disabled as every
command-invocation would create a new logfile. However if the user
explicitly sets "-v" on the commandline, there's no reason why that
shouldn't work.
This commit is contained in:
SomberNight
2022-06-12 00:54:35 +02:00
parent 29d8d8de26
commit ffe36e2f56
2 changed files with 13 additions and 8 deletions

View File

@@ -454,6 +454,7 @@ def handle_cmd(*, cmdname: str, config: 'SimpleConfig', config_options: dict):
sys_exit(1)
else:
# command line
configure_logging(config, log_to_file=False) # don't spam logfiles for each client-side RPC, but support "-v"
cmd = known_commands[cmdname]
wallet_path = config.get_wallet_path()
if not config.get('offline'):