EspressoSystems / espresso-sequencer

96 stars 68 forks source link

Make backtrace logging configurable: pretty-printed or logged #1674

Closed jbearer closed 2 months ago

jbearer commented 3 months ago

Adds an option to log panics via the tracing formatter, so they can be parsed and interpeted by Datadog. If RUST_LOG_FORMAT=json is not set, panics will be pretty-printed directly to standard out, as they have been until now.

This PR:

Key places to review:

Things tested

Ancient123 commented 3 months ago

I think it would be cleaner to just use the value in RUST_LOG_FORMAT which we have to set to json in order to enable json logging output right now anyways.

jbearer commented 3 months ago

Done in 2982c72