aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-03-26 00:11:42 +0100
committerKim Alvefur <zash@zash.se>2023-03-26 00:11:42 +0100
commit026b2d6e88a5c6c9f8766cb9776fa54b7b18b0f8 (patch)
tree5c131191ea11c056a0815b432bd43d1a7d99053b /util
parent60ae9199731ffa5b7c200fedda715097c453ff91 (diff)
downloadprosody-026b2d6e88a5c6c9f8766cb9776fa54b7b18b0f8.tar.gz
prosody-026b2d6e88a5c6c9f8766cb9776fa54b7b18b0f8.zip
util.startup: Tweak function string representation
Mostly in order to avoid triggering the XML syntax highlighting in the console logger.
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 7477e5ff..c000bdb1 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -233,7 +233,7 @@ function startup.set_function_metatable()
if info.isvararg then
info[n_params+1] = "...";
end
- return ("function<%s:%d>(%s)"):format(info.short_src:match("[^\\/]*$"), info.linedefined, table.concat(info, ", "));
+ return ("function @%s:%d(%s)"):format(info.short_src:match("[^\\/]*$"), info.linedefined, table.concat(info, ", "));
end
debug.setmetatable(function() end, mt);
end