Skip to content

Commit

Permalink
Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Browse files Browse the repository at this point in the history
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
  • Loading branch information
EricRahm committed Jun 3, 2015
1 parent c0fbd50 commit f731b9d
Show file tree
Hide file tree
Showing 49 changed files with 627 additions and 629 deletions.
46 changes: 23 additions & 23 deletions dom/events/IMEStateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ using namespace widget;

/**
* When a method is called, log its arguments and/or related static variables
* with PR_LOG_ALWAYS. However, if it puts too many logs like
* with PR_LOG_INFO. However, if it puts too many logs like
* OnDestroyPresContext(), should long only when the method actually does
* something. In this case, the log should start with "ISM: <method name>".
*
Expand Down Expand Up @@ -200,7 +200,7 @@ IMEStateManager::Init()
void
IMEStateManager::Shutdown()
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::Shutdown(), "
"sTextCompositions=0x%p, sTextCompositions->Length()=%u",
sTextCompositions, sTextCompositions ? sTextCompositions->Length() : 0));
Expand Down Expand Up @@ -241,7 +241,7 @@ IMEStateManager::OnDestroyPresContext(nsPresContext* aPresContext)
return NS_OK;
}

MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnDestroyPresContext(aPresContext=0x%p), "
"sPresContext=0x%p, sContent=0x%p, sTextCompositions=0x%p",
aPresContext, sPresContext, sContent, sTextCompositions));
Expand Down Expand Up @@ -296,7 +296,7 @@ IMEStateManager::OnRemoveContent(nsPresContext* aPresContext,
return NS_OK;
}

MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnRemoveContent(aPresContext=0x%p, "
"aContent=0x%p), sPresContext=0x%p, sContent=0x%p, sTextCompositions=0x%p",
aPresContext, aContent, sPresContext, sContent, sTextCompositions));
Expand Down Expand Up @@ -324,7 +324,7 @@ IMEStateManager::OnChangeFocus(nsPresContext* aPresContext,
nsIContent* aContent,
InputContextAction::Cause aCause)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnChangeFocus(aPresContext=0x%p, "
"aContent=0x%p, aCause=%s)",
aPresContext, aContent, GetActionCauseName(aCause)));
Expand All @@ -339,7 +339,7 @@ IMEStateManager::OnChangeFocusInternal(nsPresContext* aPresContext,
nsIContent* aContent,
InputContextAction aAction)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnChangeFocusInternal(aPresContext=0x%p, "
"aContent=0x%p, aAction={ mCause=%s, mFocusChange=%s }), "
"sPresContext=0x%p, sContent=0x%p, sActiveIMEContentObserver=0x%p",
Expand Down Expand Up @@ -449,7 +449,7 @@ IMEStateManager::OnChangeFocusInternal(nsPresContext* aPresContext,
void
IMEStateManager::OnInstalledMenuKeyboardListener(bool aInstalling)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnInstalledMenuKeyboardListener(aInstalling=%s), "
"sInstalledMenuKeyboardListener=%s",
GetBoolName(aInstalling), GetBoolName(sInstalledMenuKeyboardListener)));
Expand All @@ -468,7 +468,7 @@ IMEStateManager::OnMouseButtonEventInEditor(nsPresContext* aPresContext,
nsIContent* aContent,
nsIDOMMouseEvent* aMouseEvent)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnMouseButtonEventInEditor(aPresContext=0x%p, "
"aContent=0x%p, aMouseEvent=0x%p), sPresContext=0x%p, sContent=0x%p",
aPresContext, aContent, aMouseEvent, sPresContext, sContent));
Expand Down Expand Up @@ -506,10 +506,10 @@ IMEStateManager::OnMouseButtonEventInEditor(nsPresContext* aPresContext,
bool consumed =
sActiveIMEContentObserver->OnMouseButtonEvent(aPresContext, internalEvent);

if (MOZ_LOG_TEST(sISMLog, PR_LOG_ALWAYS)) {
if (MOZ_LOG_TEST(sISMLog, PR_LOG_INFO)) {
nsAutoString eventType;
aMouseEvent->GetType(eventType);
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnMouseButtonEventInEditor(), "
"mouse event (type=%s, button=%d) is %s",
NS_ConvertUTF16toUTF8(eventType).get(), internalEvent->button,
Expand All @@ -525,7 +525,7 @@ IMEStateManager::OnClickInEditor(nsPresContext* aPresContext,
nsIContent* aContent,
nsIDOMMouseEvent* aMouseEvent)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnClickInEditor(aPresContext=0x%p, aContent=0x%p, "
"aMouseEvent=0x%p), sPresContext=0x%p, sContent=0x%p",
aPresContext, aContent, aMouseEvent, sPresContext, sContent));
Expand Down Expand Up @@ -582,7 +582,7 @@ IMEStateManager::OnFocusInEditor(nsPresContext* aPresContext,
nsIContent* aContent,
nsIEditor* aEditor)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnFocusInEditor(aPresContext=0x%p, aContent=0x%p, "
"aEditor=0x%p), sPresContext=0x%p, sContent=0x%p, "
"sActiveIMEContentObserver=0x%p",
Expand Down Expand Up @@ -617,7 +617,7 @@ IMEStateManager::UpdateIMEState(const IMEState& aNewIMEState,
nsIContent* aContent,
nsIEditor* aEditor)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::UpdateIMEState(aNewIMEState={ mEnabled=%s, "
"mOpen=%s }, aContent=0x%p, aEditor=0x%p), "
"sPresContext=0x%p, sContent=0x%p, sActiveIMEContentObserver=0x%p, "
Expand Down Expand Up @@ -697,7 +697,7 @@ IMEState
IMEStateManager::GetNewIMEState(nsPresContext* aPresContext,
nsIContent* aContent)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::GetNewIMEState(aPresContext=0x%p, aContent=0x%p), "
"sInstalledMenuKeyboardListener=%s",
aPresContext, aContent, GetBoolName(sInstalledMenuKeyboardListener)));
Expand Down Expand Up @@ -763,7 +763,7 @@ class IMEEnabledStateChangedEvent : public nsRunnable {
nsCOMPtr<nsIObserverService> observerService =
services::GetObserverService();
if (observerService) {
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEEnabledStateChangedEvent::Run(), notifies observers of "
"\"ime-enabled-state-changed\""));
nsAutoString state;
Expand All @@ -785,7 +785,7 @@ IMEStateManager::SetIMEState(const IMEState& aState,
nsIWidget* aWidget,
InputContextAction aAction)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::SetIMEState(aState={ mEnabled=%s, mOpen=%s }, "
"aContent=0x%p, aWidget=0x%p, aAction={ mCause=%s, mFocusChange=%s })",
GetIMEStateEnabledName(aState.mEnabled),
Expand Down Expand Up @@ -913,7 +913,7 @@ IMEStateManager::DispatchCompositionEvent(
EventDispatchingCallback* aCallBack,
bool aIsSynthesized)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::DispatchCompositionEvent(aNode=0x%p, "
"aPresContext=0x%p, aCompositionEvent={ message=%s, "
"mFlags={ mIsTrusted=%s, mPropagationStopped=%s } }, "
Expand Down Expand Up @@ -996,7 +996,7 @@ IMEStateManager::OnCompositionEventDiscarded(
// Note that this method is never called for synthesized events for emulating
// commit or cancel composition.

MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnCompositionEventDiscarded(aCompositionEvent={ "
"message=%s, mFlags={ mIsTrusted=%s } })",
GetEventMessageName(aCompositionEvent->message),
Expand All @@ -1019,7 +1019,7 @@ IMEStateManager::OnCompositionEventDiscarded(
// a TextComposition instance for the composition was already removed from
// the array and destroyed in OnDestroyPresContext(). Therefore, we may
// fail to retrieve a TextComposition instance here.
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::OnCompositionEventDiscarded(), "
"TextComposition instance for the widget has already gone"));
return;
Expand All @@ -1040,7 +1040,7 @@ IMEStateManager::NotifyIME(IMEMessage aMessage,
bool isSynthesizedForTests =
composition && composition->IsSynthesizedForTests();

MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::NotifyIME(aMessage=%s, aWidget=0x%p), "
"composition=0x%p, composition->IsSynthesizedForTests()=%s",
GetNotifyIMEMessageName(aMessage), aWidget, composition.get(),
Expand Down Expand Up @@ -1075,7 +1075,7 @@ nsresult
IMEStateManager::NotifyIME(IMEMessage aMessage,
nsPresContext* aPresContext)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::NotifyIME(aMessage=%s, aPresContext=0x%p)",
GetNotifyIMEMessageName(aMessage), aPresContext));

Expand Down Expand Up @@ -1150,7 +1150,7 @@ IMEStateManager::IsIMEObserverNeeded(const IMEState& aState)
void
IMEStateManager::DestroyIMEContentObserver()
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::DestroyIMEContentObserver(), "
"sActiveIMEContentObserver=0x%p",
sActiveIMEContentObserver));
Expand All @@ -1173,7 +1173,7 @@ IMEStateManager::DestroyIMEContentObserver()
void
IMEStateManager::CreateIMEContentObserver(nsIEditor* aEditor)
{
MOZ_LOG(sISMLog, PR_LOG_ALWAYS,
MOZ_LOG(sISMLog, PR_LOG_INFO,
("ISM: IMEStateManager::CreateIMEContentObserver(aEditor=0x%p), "
"sPresContext=0x%p, sContent=0x%p, sActiveIMEContentObserver=0x%p, "
"sActiveIMEContentObserver->IsManaging(sPresContext, sContent)=%s",
Expand Down
2 changes: 1 addition & 1 deletion dom/html/HTMLTrackElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ HTMLTrackElement::LoadResource()
nsCOMPtr<nsIURI> uri;
nsresult rv = NewURIFromString(src, getter_AddRefs(uri));
NS_ENSURE_TRUE_VOID(NS_SUCCEEDED(rv));
LOG(PR_LOG_ALWAYS, ("%p Trying to load from src=%s", this,
LOG(PR_LOG_INFO, ("%p Trying to load from src=%s", this,
NS_ConvertUTF16toUTF8(src).get()));

if (mChannel) {
Expand Down
6 changes: 3 additions & 3 deletions dom/media/StreamBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ extern PRLogModuleInfo* gMediaStreamGraphLog;
void
StreamBuffer::DumpTrackInfo() const
{
STREAM_LOG(PR_LOG_ALWAYS, ("DumpTracks: mTracksKnownTime %lld", mTracksKnownTime));
STREAM_LOG(PR_LOG_INFO, ("DumpTracks: mTracksKnownTime %lld", mTracksKnownTime));
for (uint32_t i = 0; i < mTracks.Length(); ++i) {
Track* track = mTracks[i];
if (track->IsEnded()) {
STREAM_LOG(PR_LOG_ALWAYS, ("Track[%d] %d: ended", i, track->GetID()));
STREAM_LOG(PR_LOG_INFO, ("Track[%d] %d: ended", i, track->GetID()));
} else {
STREAM_LOG(PR_LOG_ALWAYS, ("Track[%d] %d: %lld", i, track->GetID(),
STREAM_LOG(PR_LOG_INFO, ("Track[%d] %d: %lld", i, track->GetID(),
track->GetEnd()));
}
}
Expand Down
2 changes: 1 addition & 1 deletion dom/xslt/xslt/txMozillaStylesheetCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ TX_LoadSheet(nsIURI* aUri, txMozillaXSLTProcessor* aProcessor,

nsAutoCString spec;
aUri->GetSpec(spec);
MOZ_LOG(txLog::xslt, PR_LOG_ALWAYS, ("TX_LoadSheet: %s\n", spec.get()));
MOZ_LOG(txLog::xslt, PR_LOG_INFO, ("TX_LoadSheet: %s\n", spec.get()));

// Content Policy
int16_t shouldLoad = nsIContentPolicy::ACCEPT;
Expand Down
10 changes: 5 additions & 5 deletions dom/xslt/xslt/txStylesheetCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ txStylesheetCompiler::characters(const nsAString& aStr)
nsresult
txStylesheetCompiler::doneLoading()
{
MOZ_LOG(txLog::xslt, PR_LOG_ALWAYS,
MOZ_LOG(txLog::xslt, PR_LOG_INFO,
("Compiler::doneLoading: %s\n",
NS_LossyConvertUTF16toASCII(mStylesheetURI).get()));
if (NS_FAILED(mStatus)) {
Expand All @@ -393,7 +393,7 @@ void
txStylesheetCompiler::cancel(nsresult aError, const char16_t *aErrorText,
const char16_t *aParam)
{
MOZ_LOG(txLog::xslt, PR_LOG_ALWAYS,
MOZ_LOG(txLog::xslt, PR_LOG_INFO,
("Compiler::cancel: %s, module: %d, code %d\n",
NS_LossyConvertUTF16toASCII(mStylesheetURI).get(),
NS_ERROR_GET_MODULE(aError),
Expand Down Expand Up @@ -422,7 +422,7 @@ txStylesheetCompiler::loadURI(const nsAString& aUri,
ReferrerPolicy aReferrerPolicy,
txStylesheetCompiler* aCompiler)
{
MOZ_LOG(txLog::xslt, PR_LOG_ALWAYS,
MOZ_LOG(txLog::xslt, PR_LOG_INFO,
("Compiler::loadURI forwards %s thru %s\n",
NS_LossyConvertUTF16toASCII(aUri).get(),
NS_LossyConvertUTF16toASCII(mStylesheetURI).get()));
Expand Down Expand Up @@ -750,7 +750,7 @@ txStylesheetCompilerState::addInstruction(nsAutoPtr<txInstruction>&& aInstructio
nsresult
txStylesheetCompilerState::loadIncludedStylesheet(const nsAString& aURI)
{
MOZ_LOG(txLog::xslt, PR_LOG_ALWAYS,
MOZ_LOG(txLog::xslt, PR_LOG_INFO,
("CompilerState::loadIncludedStylesheet: %s\n",
NS_LossyConvertUTF16toASCII(aURI).get()));
if (mStylesheetURI.Equals(aURI)) {
Expand Down Expand Up @@ -795,7 +795,7 @@ nsresult
txStylesheetCompilerState::loadImportedStylesheet(const nsAString& aURI,
txStylesheet::ImportFrame* aFrame)
{
MOZ_LOG(txLog::xslt, PR_LOG_ALWAYS,
MOZ_LOG(txLog::xslt, PR_LOG_INFO,
("CompilerState::loadImportedStylesheet: %s\n",
NS_LossyConvertUTF16toASCII(aURI).get()));
if (mStylesheetURI.Equals(aURI)) {
Expand Down
10 changes: 5 additions & 5 deletions dom/xul/templates/nsXULContentBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,14 @@ nsXULContentBuilder::BuildContentFromTemplate(nsIContent *aTemplateNode,
nsresult rv;

if (MOZ_LOG_TEST(gXULTemplateLog, PR_LOG_DEBUG)) {
MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_DEBUG,
("nsXULContentBuilder::BuildContentFromTemplate (is unique: %d)",
aIsUnique));

nsAutoString id;
aChild->GetId(id);

MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_DEBUG,
("Tags: [Template: %s Resource: %s Real: %s] for id %s",
nsAtomCString(aTemplateNode->NodeInfo()->NameAtom()).get(),
nsAtomCString(aResourceNode->NodeInfo()->NameAtom()).get(),
Expand Down Expand Up @@ -939,7 +939,7 @@ nsXULContentBuilder::CreateTemplateAndContainerContents(nsIContent* aElement,
// and 2) recursive subcontent (if the current element refers to a
// container result).

MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_INFO,
("nsXULContentBuilder::CreateTemplateAndContainerContents start - flags: %d",
mFlags));

Expand Down Expand Up @@ -975,7 +975,7 @@ nsXULContentBuilder::CreateTemplateAndContainerContents(nsIContent* aElement,
false, true);
}

MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_INFO,
("nsXULContentBuilder::CreateTemplateAndContainerContents end"));

return NS_OK;
Expand Down Expand Up @@ -1076,7 +1076,7 @@ nsXULContentBuilder::CreateContainerContentsForQuerySet(nsIContent* aElement,
if (MOZ_LOG_TEST(gXULTemplateLog, PR_LOG_DEBUG)) {
nsAutoString id;
aResult->GetId(id);
MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_DEBUG,
("nsXULContentBuilder::CreateContainerContentsForQuerySet start for ref %s\n",
NS_ConvertUTF16toUTF8(id).get()));
}
Expand Down
2 changes: 1 addition & 1 deletion dom/xul/templates/nsXULContentUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,6 @@ nsXULContentUtils::LogTemplateError(const char* aStr)
nsCOMPtr<nsIConsoleService> cs = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
if (cs) {
cs->LogStringMessage(message.get());
MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS, ("Error parsing template: %s", aStr));
MOZ_LOG(gXULTemplateLog, PR_LOG_INFO, ("Error parsing template: %s", aStr));
}
}
2 changes: 1 addition & 1 deletion dom/xul/templates/nsXULTemplateBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ nsXULTemplateBuilder::UpdateResult(nsIXULTemplateResult* aOldResult,
nsIXULTemplateResult* aNewResult,
nsIDOMNode* aQueryNode)
{
MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_INFO,
("nsXULTemplateBuilder::UpdateResult %p %p %p",
aOldResult, aNewResult, aQueryNode));

Expand Down
10 changes: 5 additions & 5 deletions dom/xul/templates/nsXULTemplateQueryProcessorRDF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ nsXULTemplateQueryProcessorRDF::GenerateResults(nsISupports* aDatasource,
nsAutoString mvar;
query->mMemberVariable->ToString(mvar);

MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_DEBUG,
("QueryProcessor::GenerateResults using ref %s and vars [ ref: %s member: %s]",
NS_ConvertUTF16toUTF8(id).get(),
NS_ConvertUTF16toUTF8(rvar).get(),
Expand Down Expand Up @@ -871,7 +871,7 @@ nsXULTemplateQueryProcessorRDF::Propagate(nsIRDFResource* aSource,
nsAutoString targetStr;
nsXULContentUtils::GetTextForNode(aTarget, targetStr);

MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_DEBUG,
("nsXULTemplateQueryProcessorRDF::Propagate: [%s] -> [%s] -> [%s]\n",
sourceStr, propertyStr, NS_ConvertUTF16toUTF8(targetStr).get()));
}
Expand Down Expand Up @@ -958,7 +958,7 @@ nsXULTemplateQueryProcessorRDF::Retract(nsIRDFResource* aSource,
nsAutoString targetStr;
nsXULContentUtils::GetTextForNode(aTarget, targetStr);

MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_DEBUG,
("nsXULTemplateQueryProcessorRDF::Retract: [%s] -> [%s] -> [%s]\n",
sourceStr, propertyStr, NS_ConvertUTF16toUTF8(targetStr).get()));
}
Expand Down Expand Up @@ -1269,13 +1269,13 @@ nsXULTemplateQueryProcessorRDF::CompileQueryChild(nsIAtom* aTag,
else if (aTag == nsGkAtoms::member) {
rv = CompileMemberCondition(aQuery, aCondition, aParentNode, aResult);
}
else if (MOZ_LOG_TEST(gXULTemplateLog, PR_LOG_ALWAYS)) {
else if (MOZ_LOG_TEST(gXULTemplateLog, PR_LOG_INFO)) {
nsAutoString tagstr;
aTag->ToString(tagstr);

nsAutoCString tagstrC;
tagstrC.AssignWithConversion(tagstr);
MOZ_LOG(gXULTemplateLog, PR_LOG_ALWAYS,
MOZ_LOG(gXULTemplateLog, PR_LOG_INFO,
("xultemplate[%p] unrecognized condition test <%s>",
this, tagstrC.get()));
}
Expand Down
2 changes: 1 addition & 1 deletion gfx/2d/Logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ inline PRLogModuleLevel PRLogLevelForLevel(int aLevel) {
case LOG_DEBUG_PRLOG:
return PR_LOG_DEBUG;
case LOG_EVERYTHING:
return PR_LOG_ALWAYS;
return PR_LOG_ERROR;
}
return PR_LOG_DEBUG;
}
Expand Down
Loading

0 comments on commit f731b9d

Please sign in to comment.