aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_logger.c')
-rw-r--r--src/lua/lua_logger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c
index dd5d90cc8..425d277f9 100644
--- a/src/lua/lua_logger.c
+++ b/src/lua/lua_logger.c
@@ -156,14 +156,14 @@ lua_common_log_line (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 (rspamd_main->logger,
+ rspamd_conditional_debug (NULL,
NULL,
func_buf,
"%s",
msg);
}
else {
- rspamd_common_log_function (rspamd_main->logger,
+ rspamd_common_log_function (NULL,
level,
func_buf,
"%s",
@@ -172,14 +172,14 @@ lua_common_log_line (GLogLevelFlags level, lua_State *L, const gchar *msg)
}
else {
if (level == G_LOG_LEVEL_DEBUG) {
- rspamd_conditional_debug (rspamd_main->logger,
+ rspamd_conditional_debug (NULL,
NULL,
G_STRFUNC,
"%s",
msg);
}
else {
- rspamd_common_log_function (rspamd_main->logger,
+ rspamd_common_log_function (NULL,
level,
G_STRFUNC,
"%s",