Why:
We've recently been debugging HTTP/3 issues in Firefox, and the lack of neqo trace/debug logs in release/opt builds makes this much harder
Context:
neqo’s qdebug! / qtrace! cannot be observed in a release/opt Firefox build, even with MOZ_LOG=neqo::*:5. In mozilla-central, the log crate is compiled with release_max_level_info, and neqo’s macros expand to log::trace! / log::debug!, which are gated by the compile-time log::STATIC_MAX_LEVEL. As a result, they are stripped at build time.
Why:
We've recently been debugging HTTP/3 issues in Firefox, and the lack of neqo trace/debug logs in release/opt builds makes this much harder
Context:
neqo’sqdebug!/qtrace!cannot be observed in a release/opt Firefox build, even withMOZ_LOG=neqo::*:5. Inmozilla-central, thelogcrate is compiled withrelease_max_level_info, andneqo’s macros expand tolog::trace!/log::debug!, which are gated by the compile-timelog::STATIC_MAX_LEVEL. As a result, they are stripped at build time.