summaryrefslogtreecommitdiff
path: root/indra/llcommon/llerror.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2018-08-28 22:25:18 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2018-08-28 22:25:18 +0300
commit36e89143b74b7fffdaf9fbb14565c957626a80c3 (patch)
tree4b60343b4221b291441736854f6b36b9d57c6a82 /indra/llcommon/llerror.cpp
parent46b6df1b484ed7a6dd96eb62f9e7e24d4426a45a (diff)
Backed out changeset: 5b0f20062633
Diffstat (limited to 'indra/llcommon/llerror.cpp')
-rw-r--r--indra/llcommon/llerror.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp
index 153bfab54c..29de79dc64 100644
--- a/indra/llcommon/llerror.cpp
+++ b/indra/llcommon/llerror.cpp
@@ -899,33 +899,6 @@ namespace LLError
namespace
{
- std::string sanitizeMessage(const std::string& message)
- {
- std::string message_new;
- S32 len = message.length();
- for (S32 i = 0; i < len; i++)
- {
- char c = message[i];
- if (c == '\\')
- {
- message_new += "\\\\";
- }
- else if (c == '\n')
- {
- message_new += "\\n";
- }
- else if (c == '\r')
- {
- message_new += "\\r";
- }
- else
- {
- message_new += c;
- }
- }
- return message_new;
- }
-
void writeToRecorders(const LLError::CallSite& site, const std::string& message, bool show_location = true, bool show_time = true, bool show_tags = true, bool show_level = true, bool show_function = true)
{
LLError::ELevel level = site.mLevel;
@@ -964,7 +937,7 @@ namespace
message_stream << site.mFunctionString << " ";
}
- message_stream << sanitizeMessage(message);
+ message_stream << message;
r->recordMessage(level, message_stream.str());
}