Skip to content

Commit

Permalink
Improve kafka logging (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradengroom authored Aug 7, 2023
1 parent 549faab commit fa188fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseplate/frameworks/queue_consumer/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def handle(self, message: confluent_kafka.Message) -> None:
data = self.message_unpack_fn(blob)
except Exception:
prom_success = "false"
logger.error("skipping invalid message")
logger.exception("skipping invalid message")
context.span.incr_tag(f"{self.name}.{topic}.invalid_message")
return

Expand Down

0 comments on commit fa188fe

Please sign in to comment.