From 128b32c62c7c6ff303bc2c29ce2a8ab6355df30a Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 22 Aug 2016 19:56:42 -0400 Subject: [PATCH] even less noisy logs --- lbrynet/core/LBRYWallet.py | 2 +- lbrynet/core/log_support.py | 10 +++++++--- lbrynet/lbrynet_daemon/LBRYExchangeRateManager.py | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lbrynet/core/LBRYWallet.py b/lbrynet/core/LBRYWallet.py index 99f4939fe..571f981d6 100644 --- a/lbrynet/core/LBRYWallet.py +++ b/lbrynet/core/LBRYWallet.py @@ -289,7 +289,7 @@ class LBRYWallet(object): d = self._do_send_many(payments_to_send) d.addCallback(lambda txid: log.debug("Sent transaction %s", txid)) return d - log.info("There were no payments to send") + log.debug("There were no payments to send") return defer.succeed(True) def get_stream_info_for_name(self, name): diff --git a/lbrynet/core/log_support.py b/lbrynet/core/log_support.py index 8ca5b2b9b..04a6fb42d 100644 --- a/lbrynet/core/log_support.py +++ b/lbrynet/core/log_support.py @@ -76,12 +76,16 @@ def disable_third_party_loggers(): def disable_noisy_loggers(): - logging.getLogger('lbrynet.dht').setLevel(logging.INFO) + 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.analytics.api').setLevel(logging.INFO) - logging.getLogger('BitcoinRPC').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.dht').setLevel(logging.INFO) + logging.getLogger('lbrynet.lbrynet_daemon.LBRYExchangeRateManager').setLevel(logging.INFO) @_log_decorator diff --git a/lbrynet/lbrynet_daemon/LBRYExchangeRateManager.py b/lbrynet/lbrynet_daemon/LBRYExchangeRateManager.py index 0af938954..22d0cb4a2 100644 --- a/lbrynet/lbrynet_daemon/LBRYExchangeRateManager.py +++ b/lbrynet/lbrynet_daemon/LBRYExchangeRateManager.py @@ -47,7 +47,7 @@ class MarketFeed(object): return defer.succeed(from_amount / (1.0 - self.fee)) def _save_price(self, price): - log.info("Saving price update %f for %s" % (price, self.market)) + log.debug("Saving price update %f for %s" % (price, self.market)) self.rate = ExchangeRate(self.market, price, int(time.time())) def _update_price(self): @@ -191,7 +191,7 @@ class DummyExchangeRateManager(object): feed.rate = ExchangeRate(feed.market, rates[feed.market]['spot'], rates[feed.market]['ts']) def convert_currency(self, from_currency, to_currency, amount): - log.info("Converting %f %s to %s" % (amount, from_currency, to_currency)) + log.debug("Converting %f %s to %s" % (amount, from_currency, to_currency)) for market in self.market_feeds: if market.rate.currency_pair == (from_currency, to_currency): return amount * market.rate.spot