aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:39:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:39:23 +0100
commit25b0522484e06ca21957abc2fa7f234fe23e8f7d (patch)
tree805c0bb4d4e99197b68db6edc37e15732b944cdc /src/lua/lua_logger.c
parent2a5e10cd472278a35dc4a7980a8130bcb9ca6430 (diff)
downloadrspamd-25b0522484e06ca21957abc2fa7f234fe23e8f7d.tar.gz
rspamd-25b0522484e06ca21957abc2fa7f234fe23e8f7d.zip
Avoid global rspamd_main usage.
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",