From 36f535a8ec1dc2d2553a322259a28e42aff5940b Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Fri, 9 Feb 2024 17:19:39 -0500 Subject: Make LLLUAmanager::runScriptFile() use filename as description. Since the description shows up in the log output, it's better to see just the script filename than to see "runScriptFile('filename')". --- indra/newview/llluamanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp index c55c44e671..d58ee5ca5f 100644 --- a/indra/newview/llluamanager.cpp +++ b/indra/newview/llluamanager.cpp @@ -300,8 +300,7 @@ std::pair LLLUAmanager::waitScriptFile(LuaState& L, const std::string void LLLUAmanager::runScriptFile(LuaState& L, const std::string& filename, script_result_fn cb) { - std::string desc{ stringize("runScriptFile('", filename, "')") }; - LLCoros::instance().launch(desc, [&L, desc, filename, cb]() + LLCoros::instance().launch(filename, [&L, filename, cb]() { llifstream in_file; in_file.open(filename.c_str()); @@ -310,7 +309,7 @@ void LLLUAmanager::runScriptFile(LuaState& L, const std::string& filename, scrip { std::string text{std::istreambuf_iterator(in_file), std::istreambuf_iterator()}; - auto [count, result] = L.expr(desc, text); + auto [count, result] = L.expr(filename, text); if (cb) { cb(count, result); -- cgit v1.2.3