NSPR_LOG_MODULES deprecation warning needs clarification

NEW
Unassigned

Status

()

Core
XPCOM
P3
normal
a year ago
2 months ago

People

(Reporter: ng, Unassigned)

Tracking

49 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
The implication of the current warning:
  WARNING: NSPR_LOG_MODULES is deprecated.
  Please use MOZ_LOG instead.

is that the use of NSPR_LOG_MODULES can be replaced with MOZ_LOG, which it can't for modules that still use old logging backend.
(Reporter)

Updated

a year ago
See Also: → bug 1299713
Maybe something like "Note: NSPR_LOG_MODULES is intended to be used to enable NSPR and NSS logs, use MOZ_LOG for gecko logs" would be more clear.
(Reporter)

Comment 2

a year ago
That would work for me.

Comment 3

11 months ago
One big annoyance is that there's no way to know which logs work with which, so the only "safe" thing to do is to always set NSPR_LOG_MODULES (only).  

There are several that are still using PR_NewLogModule() that probably don't have to be -- GMP (probably), AudioChannel, nsUpdateDriver probably, NSS perhaps, widget/gtk (several), Clipboard, nsSound, idleService, WinWakeLock
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.