diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-02-09 17:19:39 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-02-09 17:19:39 -0500 |
commit | 36f535a8ec1dc2d2553a322259a28e42aff5940b (patch) | |
tree | 00f297583ad71b00c4112aeccda2c110e4e63098 | |
parent | 10c5f46a6a847b62da62dd12f1840bd765ff92fd (diff) |
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')".
-rw-r--r-- | indra/newview/llluamanager.cpp | 5 |
1 files 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<int, LLSD> 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<char>(in_file), std::istreambuf_iterator<char>()}; - auto [count, result] = L.expr(desc, text); + auto [count, result] = L.expr(filename, text); if (cb) { cb(count, result); |