[Minor] Logging neat

This commit is contained in:
Vsevolod Stakhov 2022-11-06 20:18:32 +00:00
parent 941a4ea9e6
commit 569290a090
No known key found for this signature in database
GPG Key ID: 07647B6790081437

View File

@ -110,7 +110,7 @@ local function rspamd_map_add_from_ucl(opt, mtype, description, callback)
if t.__external then
if not key_callback and not callback then
local caller = debug.getinfo(2) or {}
rspamd_logger.errx(rspamd_config, "requested external map key without callback; caller: %s",
rspamd_logger.errx(rspamd_config, "requested external map key without callback; caller: %s:%s",
caller.short_src, caller.currentline)
return nil
end