diff options
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index ada44981b..6d8763682 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -139,18 +139,18 @@ lua_common_log (GLogLevelFlags level, lua_State *L, const gchar *msg) } rspamd_snprintf (func_buf, sizeof (func_buf), "%s:%d", p, d.currentline); if (level == G_LOG_LEVEL_DEBUG) { - rspamd_conditional_debug(-1, func_buf, msg); + rspamd_conditional_debug(rspamd_main->logger, -1, func_buf, msg); } else { - rspamd_common_log_function(level, func_buf, msg); + rspamd_common_log_function(rspamd_main->logger, level, func_buf, msg); } } else { if (level == G_LOG_LEVEL_DEBUG) { - rspamd_conditional_debug(-1, __FUNCTION__, msg); + rspamd_conditional_debug(rspamd_main->logger, -1, __FUNCTION__, msg); } else { - rspamd_common_log_function(level, __FUNCTION__, msg); + rspamd_common_log_function(rspamd_main->logger, level, __FUNCTION__, msg); } } } |