android: add setting to enable debug logs
If enabled, we log to stderr, which can get inspected via logcat. Not user-friendly at all - but previously there was no way to get logs from a release build. closes https://github.com/spesmilo/electrum/issues/7409
This commit is contained in:
@@ -314,6 +314,9 @@ def configure_logging(config: 'SimpleConfig', *, log_to_file: Optional[bool] = N
|
||||
|
||||
verbosity = config.get('verbosity')
|
||||
verbosity_shortcuts = config.get('verbosity_shortcuts')
|
||||
if not verbosity:
|
||||
if config.get('gui_enable_debug_logs') or is_android_debug_apk():
|
||||
verbosity = '*'
|
||||
_configure_stderr_logging(verbosity=verbosity, verbosity_shortcuts=verbosity_shortcuts)
|
||||
|
||||
if log_to_file is None:
|
||||
|
||||
Reference in New Issue
Block a user