Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Change S3 Tracker Logging to DEBUG (#522)

Matthew Rideout650623b199c0
diff --git a/burr/tracking/s3client.py b/burr/tracking/s3client.py
index e2ce9c62..4ffbfa08 100644
--- a/burr/tracking/s3client.py
+++ b/burr/tracking/s3client.py
@@ -215,7 +215,7 @@ class S3TrackingClient(SyncTrackingClient):
while self.running:
try:
- logger.info(f"Checking for new data to flush -- batch is of size: {len(batch)}")
+ logger.debug(f"Checking for new data to flush -- s3 batch is of size: {len(batch)}")
# Wait up to flush_interval for new data
item = self.log_queue.get(timeout=self.flush_interval)
# signal that we're done
@@ -229,14 +229,14 @@ class S3TrackingClient(SyncTrackingClient):
len(batch) >= self.max_batch_size
or (time.time() - last_flush_time) >= self.flush_interval
):
- logger.info(f"Flushing batch with {len(batch)} events")
+ logger.debug(f"Flushing s3 batch with {len(batch)} events")
self.log_events(batch)
batch = []
last_flush_time = time.time()
except queue.Empty:
# Flush on timeout if there's any data
if batch:
- logger.info(f"Flushing batch on queue empty with {len(batch)} events")
+ logger.debug(f"Flushing s3 batch on queue empty with {len(batch)} events")
self.log_events(batch)
batch = []
last_flush_time = time.time()