Closed
Bug 795897
Opened 13 years ago
Closed 13 years ago
Force NSPR logging for cache module in release build
Categories
(Core :: Networking: Cache, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: michal, Assigned: michal)
Details
Attachments
(2 files)
551 bytes,
patch
|
Biesinger
:
review+
|
Details | Diff | Splinter Review |
7.01 KB,
patch
|
jduell.mcbugs
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #666530 -
Flags: review?(honzab.moz)
Updated•13 years ago
|
Attachment #666530 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
Michal,
Note that the PR_LOG stuff gets really hacky if your source files include anything that winds up #including e10s stuff (as nsCacheService.cpp does): if you #include any file that transitively includes anything e10s-related, we wind up #including prlog.h via some chromium headers, and if your own PR_FORCE_LOG happens after that, it's too late to affect logging, and it silently doesn't work (or a per-file basis: yummy!).
It looks like you're OK for now since nsCacheService.cpp includes nsCache.h before it includes #NeckoCommon.h, but you might want to consider implementing the scheme I did in nsHttp.h to make sure you get a compiler error if your PR_FORCE_LOG is ever hidden this way. See the comment in nsHttp.h and bug 545995).
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Jason Duell (:jduell) from comment #2)
> It looks like you're OK for now since nsCacheService.cpp includes nsCache.h
> before it includes #NeckoCommon.h
The patch didn't work correctly. Logs from some files were missing.
Attachment #683946 -
Flags: review?(jduell.mcbugs)
Assignee | ||
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Attachment #683946 -
Flags: review?(jduell.mcbugs) → review+
Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•