From dfd1c7137e28d11b9935492b10d07d8906f2e316 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 28 Feb 2024 21:09:02 -0400 Subject: [PATCH] removed excessive debug logs --- src/dexorder/bin/finaldata.py | 2 +- src/dexorder/ohlc.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dexorder/bin/finaldata.py b/src/dexorder/bin/finaldata.py index 329ad38..9eea7a9 100644 --- a/src/dexorder/bin/finaldata.py +++ b/src/dexorder/bin/finaldata.py @@ -34,7 +34,7 @@ async def handle_backfill_uniswap_swaps(swaps: list[EventData]): data = await get_uniswap_data(swap) if data is not None: pool, time, price = data - log.debug(f'OHLC {pool["address"]} {time} {price}') +# log.debug(f'OHLC {pool["address"]} {time} {price}') ohlcs.light_update_all(pool['address'], time, price) def flush_callback(): diff --git a/src/dexorder/ohlc.py b/src/dexorder/ohlc.py index d66e0d0..0039635 100644 --- a/src/dexorder/ohlc.py +++ b/src/dexorder/ohlc.py @@ -414,17 +414,17 @@ class LightOHLCRepository (OHLCRepository): if price is not None: self.quotes[symbol] = timestamp(time), str(price) start = ohlc_start_time(time, period) - log.debug(f'OHLC start_time {start}') +# log.debug(f'OHLC start_time {start}') chunk = self.get_chunk(symbol, period, start) key = symbol, period prev = self.current.get(key) if prev is None: # cache miss. load from chunk. prev = self.current[key] = chunk.bar_at(start) - log.debug(f'loaded prev bar from chunk {prev}') +# log.debug(f'loaded prev bar from chunk {prev}') if prev is None: # not in cache or chunk. create new bar. - log.debug(f'no prev bar') +# log.debug(f'no prev bar') if price is not None: close = price else: