Software /
code /
prosody
Changeset
12982:fc0109c59807
util.startup: Tweak function string representation
Mostly in order to avoid triggering the XML syntax highlighting in the
console logger.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Mar 2023 00:11:42 +0100 |
parents | 12981:d795e3bbc0e3 |
children | 12983:4533c9b906b0 |
files | util/startup.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/startup.lua Fri Mar 24 16:29:48 2023 +0100 +++ b/util/startup.lua Sun Mar 26 00:11:42 2023 +0100 @@ -233,7 +233,7 @@ 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