forked from LBRYCommunity/lbry-sdk
even less noisy logs
This commit is contained in:
parent
95f4b29be5
commit
128b32c62c
3 changed files with 10 additions and 6 deletions
|
@ -289,7 +289,7 @@ class LBRYWallet(object):
|
||||||
d = self._do_send_many(payments_to_send)
|
d = self._do_send_many(payments_to_send)
|
||||||
d.addCallback(lambda txid: log.debug("Sent transaction %s", txid))
|
d.addCallback(lambda txid: log.debug("Sent transaction %s", txid))
|
||||||
return d
|
return d
|
||||||
log.info("There were no payments to send")
|
log.debug("There were no payments to send")
|
||||||
return defer.succeed(True)
|
return defer.succeed(True)
|
||||||
|
|
||||||
def get_stream_info_for_name(self, name):
|
def get_stream_info_for_name(self, name):
|
||||||
|
|
|
@ -76,12 +76,16 @@ def disable_third_party_loggers():
|
||||||
|
|
||||||
|
|
||||||
def disable_noisy_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.ConnectionManager').setLevel(logging.INFO)
|
||||||
logging.getLogger('lbrynet.core.client.BlobRequester').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.client.ClientProtocol').setLevel(logging.INFO)
|
||||||
logging.getLogger('lbrynet.analytics.api').setLevel(logging.INFO)
|
logging.getLogger('lbrynet.core.server.ServerRequestHandler').setLevel(logging.INFO)
|
||||||
logging.getLogger('BitcoinRPC').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
|
@_log_decorator
|
||||||
|
|
|
@ -47,7 +47,7 @@ class MarketFeed(object):
|
||||||
return defer.succeed(from_amount / (1.0 - self.fee))
|
return defer.succeed(from_amount / (1.0 - self.fee))
|
||||||
|
|
||||||
def _save_price(self, price):
|
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()))
|
self.rate = ExchangeRate(self.market, price, int(time.time()))
|
||||||
|
|
||||||
def _update_price(self):
|
def _update_price(self):
|
||||||
|
@ -191,7 +191,7 @@ class DummyExchangeRateManager(object):
|
||||||
feed.rate = ExchangeRate(feed.market, rates[feed.market]['spot'], rates[feed.market]['ts'])
|
feed.rate = ExchangeRate(feed.market, rates[feed.market]['spot'], rates[feed.market]['ts'])
|
||||||
|
|
||||||
def convert_currency(self, from_currency, to_currency, amount):
|
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:
|
for market in self.market_feeds:
|
||||||
if market.rate.currency_pair == (from_currency, to_currency):
|
if market.rate.currency_pair == (from_currency, to_currency):
|
||||||
return amount * market.rate.spot
|
return amount * market.rate.spot
|
||||||
|
|
Loading…
Add table
Reference in a new issue