On Fri, May 22, 2015 at 1:02 PM, Nicholas Nethercote <[email protected]
> wrote:

> On Sat, May 23, 2015 at 4:46 AM, Randell Jesup <[email protected]>
> wrote:
> >>
> >>Various bits of code invented a log level that was less important than
> >>debug (I would call this verbose). This was not specified in NSPR
> logging,
> >>but just kind of worked. With the addition of |Info| we can transition
> code
> >>that was using this pseudo log level to:
> >>  - map PR_LOG_DEBUG     => Info
> >>  - map PR_LOG_DEBUG + 1 => Debug
> >>
> >>In this case we could have added a |Verbose| log level, but with the
> >>addition of |Info| and feeling that fewer is better we have decided
> against
> >>that.
> >
> > This is used extensively in WebRTC and related media bits to enable
> > *huge* amounts of debugs (like every-frame debugs for audio or video or
> > per-network-packet debugs, which will swamp a system normally), and since
> > people are used to enabling "debug" on random modules (or all:5), having
> > verbose debugs in the "normal" :5 setting will cause pain.
>
> Can this be controlled some other way? Via a #define? Via another
> environment variable?
>
> I ask because in discussions with Eric I've been encouraging him to
> reduce the number of logging levels as much as possible. It would be
> sad to have to complicate the general mechanism because one module
> does things differently to the rest of the system.
>

I think it's generally valuable to have a trace level for all
networking-type things.

Having some separate mechanism seems like the more complicated thing.

-Ekr
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to