diff options
| author | Richard Linden <none@none> | 2013-08-23 13:41:51 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2013-08-23 13:41:51 -0700 |
| commit | a77f42494584537489410a5157179aaadf868935 (patch) | |
| tree | 22e283bc06929dcceb6bc5bdc0025069d6ea143a /indra/llcommon/llerror.cpp | |
| parent | c95d0b884371045a46c345d43fab90b5f3d6ccb2 (diff) | |
BUILDFIX: fix for crashes in unit tests on mac and linux
Diffstat (limited to 'indra/llcommon/llerror.cpp')
| -rwxr-xr-x | indra/llcommon/llerror.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp index 590e236090..5bb6f53828 100755 --- a/indra/llcommon/llerror.cpp +++ b/indra/llcommon/llerror.cpp @@ -926,9 +926,10 @@ 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; + //message_stream << site.mLocationString; message_stream << " "; } @@ -949,12 +950,13 @@ namespace if (show_function && r->wantsFunctionName()) { - message_stream << site.mFunctionString << " "; + //message_stream << site.mFunctionString << " "; } message_stream << message; - r->recordMessage(level, message_stream.str()); + std::string final_message = message_stream.str(); + r->recordMessage(level, final_message); } } } @@ -1158,6 +1160,10 @@ 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) { |
