diff --git a/lbrynet/__init__.py b/lbrynet/__init__.py index b10fb38de..820135b92 100644 --- a/lbrynet/__init__.py +++ b/lbrynet/__init__.py @@ -1,2 +1,6 @@ +import logging + __version__ = "0.4.5" -version = tuple(__version__.split('.')) \ No newline at end of file +version = tuple(__version__.split('.')) + +logging.getLogger(__name__).addHandler(logging.NullHandler()) \ No newline at end of file diff --git a/lbrynet/core/log_support.py b/lbrynet/core/log_support.py index fcc5dd1c3..517a1406f 100644 --- a/lbrynet/core/log_support.py +++ b/lbrynet/core/log_support.py @@ -78,20 +78,13 @@ def disable_third_party_loggers(): def disable_noisy_loggers(): logging.getLogger('BitcoinRPC').setLevel(logging.INFO) logging.getLogger('lbrynet.analytics.api').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.client.ConnectionManager').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.client.BlobRequester').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.client.ClientProtocol').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.server.ServerRequestHandler').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.server.ServerProtocol').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.server.BlobAvailabilityHandler').setLevel(logging.INFO) + logging.getLogger('lbrynet.core.client').setLevel(logging.INFO) + logging.getLogger('lbrynet.core.server').setLevel(logging.INFO) logging.getLogger('lbrynet.dht').setLevel(logging.INFO) - logging.getLogger('lbrynet.lbrynet_daemon.LBRYExchangeRateManager').setLevel(logging.INFO) - logging.getLogger('lbrynet.lbrynet_daemon.LBRYDaemon').setLevel(logging.INFO) + logging.getLogger('lbrynet.lbrynet_daemon').setLevel(logging.INFO) logging.getLogger('lbrynet.core.LBRYWallet').setLevel(logging.INFO) - logging.getLogger('lbrynet.lbryfile.LBRYFileMetadataManager').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.client.DownloadManager').setLevel(logging.INFO) - logging.getLogger('lbrynet.lbryfilemanager.LBRYFileManager').setLevel(logging.INFO) - logging.getLogger('lbrynet.core.server.BlobRequestHandler').setLevel(logging.INFO) + logging.getLogger('lbrynet.lbryfile').setLevel(logging.INFO) + logging.getLogger('lbrynet.lbryfilemanager').setLevel(logging.INFO) @_log_decorator