diff options
Diffstat (limited to 'src/lua/lua_logger.c')
-rw-r--r-- | src/lua/lua_logger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c index b9969b86b..9a0dacf46 100644 --- a/src/lua/lua_logger.c +++ b/src/lua/lua_logger.c @@ -664,7 +664,7 @@ lua_logger_get_id(lua_State *L, gint pos, GError **err) EINVAL, "invalid rspamd{task}"); } } - else if (strcmp(clsname, "rspamd{mempool}") == 0) { + else if (strcmp(clsname, rspamd_mempool_classname) == 0) { rspamd_mempool_t *pool; pool = rspamd_lua_check_mempool(L, pos); @@ -677,7 +677,7 @@ lua_logger_get_id(lua_State *L, gint pos, GError **err) EINVAL, "invalid rspamd{mempool}"); } } - else if (strcmp(clsname, "rspamd{config}") == 0) { + else if (strcmp(clsname, rspamd_config_classname) == 0) { struct rspamd_config *cfg; cfg = lua_check_config(L, pos); @@ -692,7 +692,7 @@ lua_logger_get_id(lua_State *L, gint pos, GError **err) EINVAL, "invalid rspamd{config}"); } } - else if (strcmp(clsname, "rspamd{map}") == 0) { + else if (strcmp(clsname, rspamd_map_classname) == 0) { struct rspamd_lua_map *map; map = lua_check_map(L, pos); |