Merge pull request #5317 from samgermain/fix-spammy-console

Log level set to debug on exchange.get_rate
This commit is contained in:
Matthias 2021-07-26 18:12:36 +02:00 committed by GitHub
commit 5c011cba73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1037,11 +1037,11 @@ class Exchange:
f"determined. Orderbook: {order_book}"
)
raise PricingError from e
logger.info(f"{name} price from orderbook {conf_strategy['price_side'].capitalize()}"
f"side - top {order_book_top} order book {side} rate {rate:.8f}")
price_side = {conf_strategy['price_side'].capitalize()}
logger.debug(f"{name} price from orderbook {price_side}"
f"side - top {order_book_top} order book {side} rate {rate:.8f}")
else:
logger.info(f"Using Last {conf_strategy['price_side'].capitalize()} / Last Price")
logger.debug(f"Using Last {conf_strategy['price_side'].capitalize()} / Last Price")
ticker = self.fetch_ticker(pair)
ticker_rate = ticker[conf_strategy['price_side']]
if ticker['last']: