summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2016-09-02 14:03:28 -0400
committerNat Goodspeed <nat@lindenlab.com>2016-09-02 14:03:28 -0400
commita05ee7324df475231d5b46a1ba6b20f23ce71d0f (patch)
tree2d9091cc3bcbd487a6a698cc7dd7b6330961ec67
parent56a83d2115f3dc55902a3a9aa43afbfeeb4a462a (diff)
MAINT-5232: Abbreviate __FILE__ path in log_subsystem_cleanup().
LLError::abbreviateFile() is specifically to avoid cluttering log output with the prefix of an absolute file path on the original build system, pointless for anyone trying to read the log.
-rw-r--r--indra/llcommon/llcleanup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llcommon/llcleanup.cpp b/indra/llcommon/llcleanup.cpp
index f45f4925ce..c5283507bf 100644
--- a/indra/llcommon/llcleanup.cpp
+++ b/indra/llcommon/llcleanup.cpp
@@ -18,11 +18,12 @@
// external library headers
// other Linden headers
#include "llerror.h"
+#include "llerrorcontrol.h"
void log_subsystem_cleanup(const char* file, int line, const char* function,
const char* classname)
{
- LL_INFOS("Cleanup") << file << "(" << line << "): calling "
- << classname << "::cleanupClass() in "
+ LL_INFOS("Cleanup") << LLError::abbreviateFile(file) << "(" << line << "): "
+ << "calling " << classname << "::cleanupClass() in "
<< function << LL_ENDL;
}