summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorAura Linden <aura@lindenlab.com>2014-03-24 22:44:51 -0700
committerAura Linden <aura@lindenlab.com>2014-03-24 22:44:51 -0700
commit0893b49ebdd5c072f099ab7a9aa75d106c0c439b (patch)
treeda6214b6ae84c2104287b89d3507435c8ef327eb /indra/newview/llappviewer.cpp
parent877f87a360d00b5d9cf6d9520102b8620727a7a9 (diff)
The simple approach has not worked. This hybrid solution should avoid the Windows issues and get us per-run logfiles.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rwxr-xr-xindra/newview/llappviewer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index d2e4136b9b..817ae9e2d2 100755
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -725,6 +725,13 @@ LLAppViewer::~LLAppViewer()
destroyMainloopTimeout();
+#if !LL_WINDOWS
+ //Last thing, let's copy SL.log into the per-run directory. We don't care if this operation fails.
+ std::string per_run_log = gDirUtilp->getExpandedFilename(LL_PATH_DUMP,"SecondLife.log");
+ std::string current_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"SecondLife.log");
+ LLFile::copy(per_run_log, current_log);
+#endif
+
// If we got to this destructor somehow, the app didn't hang.
removeMarkerFiles();
}