Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,13 @@ def flush(self):
# Although the write goes through for the valid data points, getting this info
# could be helpful for debugging. We may need to leverage a known schema later
# to be more proactive about the problem.
logging.error("error when writing batch: %s", exc.message)
msg = str(exc.message)

logging.error("error when writing batch: %s", msg)

# For a write timeout, we want to fail and retry the whole batch.
if "timeout" in msg:
raise

# ack entire batch
logging.info("acking batch")
Expand Down