diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-02 16:14:53 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-02 16:14:53 +0000 |
commit | 210fed642b5fe0d837b9dd84a8988d5f17bbd1c1 (patch) | |
tree | 7a0d53814b5955b7256eb33d7c1a6fd3fafb824a /indra/newview/lllogchat.cpp | |
parent | 9a4d079b92d430cc86ddbee36efbd1ca58ddb986 (diff) | |
parent | 0a41542f2388a3b6142a15fef653b3e663e1dcc7 (diff) |
PE merge.
Diffstat (limited to 'indra/newview/lllogchat.cpp')
-rw-r--r-- | indra/newview/lllogchat.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/lllogchat.cpp b/indra/newview/lllogchat.cpp index dc187bf36c..96ce01c05f 100644 --- a/indra/newview/lllogchat.cpp +++ b/indra/newview/lllogchat.cpp @@ -138,16 +138,20 @@ void LLLogChat::saveHistory(const std::string& filename, const LLUUID& from_id, const std::string& line) { - if(!filename.size()) + std::string tmp_filename = filename; + LLStringUtil::trim(tmp_filename); + if (tmp_filename.empty()) { - llinfos << "Filename is Empty!" << llendl; + std::string warn = "Chat history filename [" + filename + "] is empty!"; + llwarning(warn, 666); + llassert(tmp_filename.size()); return; } - + llofstream file (LLLogChat::makeLogFileName(filename), std::ios_base::app); if (!file.is_open()) { - llinfos << "Couldn't open chat history log!" << llendl; + llwarns << "Couldn't open chat history log! - " + filename << llendl; return; } |