LukeMathWalker / pavex

An easy-to-use Rust framework for building robust and performant APIs
https://pavex.dev
Apache License 2.0
1.67k stars 55 forks source link

feat: Rework CLI introspections #292

Closed LukeMathWalker closed 2 months ago

LukeMathWalker commented 2 months ago

--debug was a very overloaded CLI flag: it rendered the full diagnostic error chain, exported perf profiling info and enabled internal logging. In most cases, that's undesirable:

To better accommodate these usage patterns, --debug will now be limited to diagnostic error chains. We introduce --perf-profile to emit trace files, --log for internal logging and an explicit --log-filter to configure what gets logged.

LukeMathWalker commented 2 months ago

/ok-to-test sha=492bc26