summaryrefslogtreecommitdiff
path: root/indra/llcommon/llerror.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llerror.cpp')
-rwxr-xr-xindra/llcommon/llerror.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp
index a51f8f216a..96dbaa572a 100755
--- a/indra/llcommon/llerror.cpp
+++ b/indra/llcommon/llerror.cpp
@@ -926,7 +926,6 @@ namespace
std::ostringstream message_stream;
- const_cast<LLError::CallSite&>(site).mTagString += " ";
if (show_location && (r->wantsLocation() || level == LLError::LEVEL_ERROR || s.mPrintLocation))
{
message_stream << site.mLocationString << " ";
@@ -937,16 +936,16 @@ namespace
message_stream << s.mTimeFunction() << " ";
}
- if (show_tags && r->wantsTags())
+ if (show_level && r->wantsLevel())
{
- message_stream << site.mTagString << " ";
+ message_stream << site.mLevelString << " ";
}
- if (show_level && r->wantsLevel())
+ if (show_tags && r->wantsTags())
{
- message_stream << site.mLevelString << " ";
+ message_stream << site.mTagString << " ";
}
-
+
if (show_function && r->wantsFunctionName())
{
message_stream << site.mFunctionString << " ";
@@ -954,8 +953,7 @@ namespace
message_stream << message;
- std::string final_message = message_stream.str();
- r->recordMessage(level, final_message);
+ r->recordMessage(level, message_stream.str());
}
}
}
@@ -1159,10 +1157,6 @@ namespace LLError
Globals& g = Globals::get();
Settings& s = Settings::get();
- //const_cast<CallSite&>(site).mTagString += " ";
- std::string tag_string = site.mTagString;
- tag_string += " ";
-
std::string message = out->str();
if (out == &g.messageStream)
{