Open Bug 1301821 Opened 8 years ago Updated 2 years ago

NSPR_LOG_MODULES deprecation warning needs clarification

Categories

(Core :: XPCOM, defect, P3)

49 Branch
defect

Tracking

()

People

(Reporter: ng, Unassigned)

References

Details

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.
See Also: → 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.
That would work for me.
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.