From f22a23aaf26146bd813c1218dec9346adb99a6f9 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 26 Apr 2019 21:14:52 +0200 Subject: [PATCH] logging: fix for kivy --- electrum/logging.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electrum/logging.py b/electrum/logging.py index 22c7fc68b..932b24ad0 100644 --- a/electrum/logging.py +++ b/electrum/logging.py @@ -133,6 +133,9 @@ def configure_logging(config): log_directory = pathlib.Path(config.path) / "logs" _configure_file_logging(log_directory) + # if using kivy, avoid kivy's own logs to get printed twice + logging.getLogger('kivy').propagate = False + from . import ELECTRUM_VERSION _logger.info(f"Electrum version: {ELECTRUM_VERSION} - https://electrum.org - https://github.com/spesmilo/electrum") _logger.info(f"Python version: {sys.version}. On platform: {platform.platform()}")