Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: if error occurs when formatting event, print to stderr
When `Format_event::format_event(...)` returns an errror, we are currently silently dropping that Span/Event. tokio-rs/valuable#88 explains one such case in which this was encountered (due to a bug in valuable-serde). We want to be made aware whenever a Span/Event is dropped. This patch adds a single `eprintln` line to let the user know that we were unable to format a specific event. We are not emitting an actual tracing Event, to avoid the risk of a cycle (the new Event could trigger the same formatting error again). Resolves #1965.
- Loading branch information