summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterluadebug.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-10-14 13:17:23 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-10-14 13:17:23 +0300
commita2ae46ef3a0036a6030ccc1e3ef4fcdfb7f455f3 (patch)
tree8f8b58ba03b10e3b0ad9db780adb65d8c09f51a7 /indra/newview/llfloaterluadebug.cpp
parent3f4c977bc9c4604f0216f0463bd609c615b6c0b7 (diff)
#1921 Add setting to hide source info from output in Lua Debug Console
Diffstat (limited to 'indra/newview/llfloaterluadebug.cpp')
-rw-r--r--indra/newview/llfloaterluadebug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloaterluadebug.cpp b/indra/newview/llfloaterluadebug.cpp
index 06877df816..f7f3b8d588 100644
--- a/indra/newview/llfloaterluadebug.cpp
+++ b/indra/newview/llfloaterluadebug.cpp
@@ -58,7 +58,9 @@ bool LLFloaterLUADebug::postBuild()
.listen("LLFloaterLUADebug",
[mResultOutput=mResultOutput](const LLSD& data)
{
- mResultOutput->pasteTextWithLinebreaks(data.asString());
+ LLCachedControl<bool> show_source_info(gSavedSettings, "LuaDebugShowSource", false);
+ std::string source_info = show_source_info ? data["source_info"].asString() : "";
+ mResultOutput->pasteTextWithLinebreaks(data["level"].asString() + source_info + data["msg"].asString());
mResultOutput->addLineBreakChar(true);
return false;
});