Merge pull request #5317 from samgermain/fix-spammy-console
Log level set to debug on exchange.get_rate
This commit is contained in:
		| @@ -1037,11 +1037,11 @@ class Exchange: | |||||||
|                     f"determined. Orderbook: {order_book}" |                     f"determined. Orderbook: {order_book}" | ||||||
|                 ) |                 ) | ||||||
|                 raise PricingError from e |                 raise PricingError from e | ||||||
|  |             price_side = {conf_strategy['price_side'].capitalize()} | ||||||
|             logger.info(f"{name} price from orderbook {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}") |                          f"side - top {order_book_top} order book {side} rate {rate:.8f}") | ||||||
|         else: |         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 = self.fetch_ticker(pair) | ||||||
|             ticker_rate = ticker[conf_strategy['price_side']] |             ticker_rate = ticker[conf_strategy['price_side']] | ||||||
|             if ticker['last']: |             if ticker['last']: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user