Skip to content
Snippets Groups Projects
Commit 7ab616c1 authored by Richard Linden's avatar Richard Linden
Browse files

BUILDFIX: fix for windows unit test failures...don't do unnecessary

manipulation of callsite strings in llerror
parent 82e96bb3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment