From 9abebca0cc3200918ea23a37b27c65da0d3ea904 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 22 May 2010 15:28:05 -0700 Subject: Added 'Notifications' to logcontrol.xml to reduce notification saving log spam --- linden/indra/llui/llnotifications.cpp | 14 +++++++------- linden/indra/newview/app_settings/logcontrol.xml | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'linden/indra') diff --git a/linden/indra/llui/llnotifications.cpp b/linden/indra/llui/llnotifications.cpp index 0b8bbbe..2459110 100644 --- a/linden/indra/llui/llnotifications.cpp +++ b/linden/indra/llui/llnotifications.cpp @@ -78,12 +78,12 @@ private: void savePersistentNotifications() { - llinfos << "Saving open notifications to " << mFileName << llendl; + LL_DEBUGS("Notifications") << "Saving open notifications to " << mFileName << LL_ENDL; llofstream notify_file(mFileName.c_str()); if (!notify_file.is_open()) { - llwarns << "Failed to open " << mFileName << llendl; + LL_WARNS("Notifications") << "Failed to open " << mFileName << LL_ENDL; return; } @@ -108,12 +108,12 @@ private: void loadPersistentNotifications() { - llinfos << "Loading open notifications from " << mFileName << llendl; + LL_INFOS("Notifications") << "Loading open notifications from " << mFileName << LL_ENDL; llifstream notify_file(mFileName.c_str()); if (!notify_file.is_open()) { - llwarns << "Failed to open " << mFileName << llendl; + LL_WARNS("Notifications") << "Failed to open " << mFileName << LL_ENDL; return; } @@ -121,7 +121,7 @@ private: LLPointer parser = new LLSDXMLParser(); if (parser->parse(notify_file, input, LLSDSerialize::SIZE_UNLIMITED) < 0) { - llwarns << "Failed to parse open notifications" << llendl; + LL_WARNS("Notifications") << "Failed to parse open notifications" << LL_ENDL; return; } @@ -129,7 +129,7 @@ private: std::string version = input["version"]; if (version != NOTIFICATION_PERSIST_VERSION) { - llwarns << "Bad open notifications version: " << version << llendl; + LL_WARNS("Notifications") << "Bad open notifications version: " << version << LL_ENDL; return; } LLSD& data = input["data"]; @@ -1302,7 +1302,7 @@ bool LLNotifications::loadTemplates() continue; } - //llinfos << "Parsing " << pTemplate->mName << llendl; + LL_DEBUGS("Notifications") << "Parsing " << pTemplate->mName << LL_ENDL; pTemplate->mMessage = item->getTextContents(); pTemplate->mDefaultFunctor = pTemplate->mName; diff --git a/linden/indra/newview/app_settings/logcontrol.xml b/linden/indra/newview/app_settings/logcontrol.xml index 3f4fdbf..639a750 100644 --- a/linden/indra/newview/app_settings/logcontrol.xml +++ b/linden/indra/newview/app_settings/logcontrol.xml @@ -61,6 +61,7 @@ + -- cgit v1.1