1
0

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:
SomberNight
2019-05-08 16:52:04 +02:00
parent 3ed502a728
commit f6a7e6ec7d
3 changed files with 3 additions and 4 deletions

View File

@@ -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"