Browse Source

[Minor] Logging neat

external-maps
Vsevolod Stakhov 4 years ago
parent
commit
569290a090
No known key found for this signature in database GPG Key ID: 7647B6790081437
  1. 2
      lualib/lua_maps.lua

2
lualib/lua_maps.lua

@ -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

Loading…
Cancel
Save