logging: fix for kivy

This commit is contained in:
SomberNight 2019-04-26 21:14:52 +02:00
parent 6940c424d1
commit f22a23aaf2
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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()}")