SomberNight
2 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
4 additions and
4 deletions
-
electrum/logging.py
-
run_electrum
|
|
@ -314,9 +314,8 @@ 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 = '*' |
|
|
|
if not verbosity and config.get('gui_enable_debug_logs'): |
|
|
|
verbosity = '*' |
|
|
|
_configure_stderr_logging(verbosity=verbosity, verbosity_shortcuts=verbosity_shortcuts) |
|
|
|
|
|
|
|
if log_to_file is None: |
|
|
|
|
|
@ -325,9 +325,10 @@ def main(): |
|
|
|
import importlib.util |
|
|
|
android_gui = 'kivy' if importlib.util.find_spec('kivy') else 'qml' |
|
|
|
config_options = { |
|
|
|
'verbosity': '*' if util.is_android_debug_apk() else '', |
|
|
|
'cmd': 'gui', |
|
|
|
'gui': android_gui, |
|
|
|
'single_password':True, |
|
|
|
'single_password': True, |
|
|
|
} |
|
|
|
if util.get_android_package_name() == "org.electrum.testnet.electrum": |
|
|
|
# ~hack for easier testnet builds. pkgname subject to change. |
|
|
|