Closed
Bug 241952
Opened 21 years ago
Closed 21 years ago
Change XUL nsprlogging to spam all:4/all:5 instead of all:2
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
Details
Attachments
(1 file)
27.71 KB,
patch
|
neil
:
review+
dveditz
:
superreview+
|
Details | Diff | Splinter Review |
Currently xul logs everything as if it's critical. This makes it fairly hard to
read an all:2 log. I don't mind spamming all:5.
Attachment #147228 -
Flags: superreview?(bzbarsky)
Attachment #147228 -
Flags: review?(neil.parkwaycc.co.uk)
![]() |
||
Comment 2•21 years ago
|
||
I'm not doing srs in the foreseeable future. See the reviewers page... Please
ask someone else?
Comment 3•21 years ago
|
||
Comment on attachment 147228 [details] [diff] [review]
attempt to pick reasonable log levels
A few extra PR_LOG_TESTs wouldn't go amiss.
Attachment #147228 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #147228 -
Flags: superreview?(bzbarsky) → superreview?(dveditz)
Comment 4•21 years ago
|
||
Comment on attachment 147228 [details] [diff] [review]
attempt to pick reasonable log levels
> nsresult
> nsXULDocument::StartLayout(void)
> {
> if (!mRootContent) {
> #ifdef PR_LOGGING
> nsCAutoString urlspec;
> mDocumentURI->GetSpec(urlspec);
>
>- PR_LOG(gXULLog, PR_LOG_ALWAYS,
>+ PR_LOG(gXULLog, PR_LOG_WARNING,
> ("xul: unable to layout '%s'; no root content", urlspec.get()));
---------------------
> nsXULDocument::OverlayForwardReference::~OverlayForwardReference()
> {
> #ifdef PR_LOGGING
>- if (PR_LOG_TEST(gXULLog, PR_LOG_ALWAYS) && !mResolved) {
>+ if (PR_LOG_TEST(gXULLog, PR_LOG_WARNING) && !mResolved) {
> nsAutoString id;
> mOverlay->GetAttr(kNameSpaceID_None, nsXULAtoms::id, id);
>
> nsCAutoString idC;
> idC.AssignWithConversion(id);
>- PR_LOG(gXULLog, PR_LOG_ALWAYS,
>+ PR_LOG(gXULLog, PR_LOG_WARNING,
> ("xul: overlay failed to resolve '%s'",
Should the above two spots be PR_LOG_ERROR instead?
If neil's happy I'm fine with it.
sr=dveditz
Attachment #147228 -
Flags: superreview?(dveditz) → superreview+
Comment 5•21 years ago
|
||
The second one is harmless, it's useful for overlays that are used in multiple
windows and won't know which ids will be available in advance.
mozilla/content/xul/document/src/nsXULCommandDispatcher.cpp 1.78
mozilla/content/xul/document/src/nsXULContentSink.cpp 1.140
mozilla/content/xul/document/src/nsXULDocument.cpp 1.626
mozilla/content/xul/document/src/nsElementMap.cpp 1.25
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•