From 5430a0f289ce3f038f933c976ad48e20dcdd1b9d Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 19 Sep 2018 13:42:12 -0300 Subject: [PATCH] supress git version print statement to debug --- lbrynet/core/system_info.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/core/system_info.py b/lbrynet/core/system_info.py index 765ff7f49..0fed2967a 100644 --- a/lbrynet/core/system_info.py +++ b/lbrynet/core/system_info.py @@ -8,6 +8,9 @@ from six.moves.urllib.error import URLError from lbryschema import __version__ as lbryschema_version from lbrynet import build_type, __version__ as lbrynet_version from lbrynet.conf import ROOT_DIR +import logging.handlers + +log = logging.getLogger(__name__) def get_lbrynet_version(): @@ -20,7 +23,7 @@ def get_lbrynet_version(): stderr=devnull ).decode().strip().lstrip('v') except (subprocess.CalledProcessError, OSError): - print("failed to get version from git") + log.debug("failed to get version from git") return lbrynet_version