aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-22 16:08:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-22 16:08:44 +0100
commitbbc4c1eee1f8bd1bcb55189d6ad692ff6c28f72a (patch)
treec75c7ea3751def4d0770ce76060e0b4c5d30d3a5 /src/main.c
parent74bf7ad25800bb510735a245f88728e1e1aad725 (diff)
downloadrspamd-bbc4c1eee1f8bd1bcb55189d6ad692ff6c28f72a.tar.gz
rspamd-bbc4c1eee1f8bd1bcb55189d6ad692ff6c28f72a.zip
Print assertions from glib to rspamd logger.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index e13925d33..87de76bee 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1143,6 +1143,7 @@ main (gint argc, gchar **argv, gchar **env)
rspamd_set_logger (rspamd_main->cfg, type, rspamd_main);
(void)rspamd_log_open (rspamd_main->logger);
g_log_set_default_handler (rspamd_glib_log_function, rspamd_main->logger);
+ g_set_printerr_handler (rspamd_glib_printerr_function);
detect_priv (rspamd_main);