logging: don't log to file by default
Leaking addresses/pubkeys/txids is a privacy leak... but with lightning, logging should be enabled by default, as otherwise issues would be sometimes impossible to debug... Well, disable it for now.
This commit is contained in:
@@ -233,7 +233,7 @@ def configure_logging(config):
|
||||
_configure_verbosity(verbosity=verbosity, verbosity_shortcuts=verbosity_shortcuts)
|
||||
|
||||
is_android = 'ANDROID_DATA' in os.environ
|
||||
if is_android or config.get('disablefilelogging'):
|
||||
if is_android or not config.get('log_to_file', False):
|
||||
pass # disable file logging
|
||||
else:
|
||||
log_directory = pathlib.Path(config.path) / "logs"
|
||||
|
||||
Reference in New Issue
Block a user