Skip to content

Commit

Permalink
Add exc_info to warning log
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Gustyr <[email protected]>
  • Loading branch information
matthewelwell and khvn26 authored Apr 17, 2024
1 parent afc7b05 commit d1ccc5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/app_analytics/influxdb_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def write(self):
try:
self.write_api.write(bucket=settings.INFLUXDB_BUCKET, record=self.records)
except (HTTPError, InfluxDBError) as e:
logger.warning("Failed to write records to Influx: %s", str(e))
logger.warning(
"Failed to write records to Influx: %s",
str(e),
exc_info=e,
)
logger.debug(
"Records: %s. Bucket: %s",
self.records,
Expand Down

0 comments on commit d1ccc5a

Please sign in to comment.