diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-06 18:40:37 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-06 18:40:37 +0400 |
commit | 71d0d1657d9dd40fb2bd3390e752db18327ecdf0 (patch) | |
tree | 912025fb6cf4bdcd817eb4d336383b26dbde4d4e /src | |
parent | 10d43143584a98ea4aece11c4fa753f71808afec (diff) | |
download | rspamd-71d0d1657d9dd40fb2bd3390e752db18327ecdf0.tar.gz rspamd-71d0d1657d9dd40fb2bd3390e752db18327ecdf0.zip |
* Add sample XML config
* Fix minor errors in logging initializing
* Fix installation of config files
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index 522af5736..e13ccb77c 100644 --- a/src/main.c +++ b/src/main.c @@ -236,7 +236,7 @@ drop_priv (struct config_file *cfg) static void config_logger (struct rspamd_main *rspamd, gboolean is_fatal) { - rspamd_set_logger (rspamd->cfg->log_type, RSPAMD_MAIN, rspamd->cfg); + rspamd_set_logger (rspamd->cfg->log_type, TYPE_MAIN, rspamd->cfg); if (open_log () == -1) { if (is_fatal) { fprintf (stderr, "Fatal error, cannot open logfile, exiting\n"); @@ -781,7 +781,7 @@ main (int argc, char **argv, char **env) #endif /* First set logger to console logger */ - rspamd_set_logger (RSPAMD_LOG_CONSOLE, RSPAMD_MAIN, rspamd->cfg); + rspamd_set_logger (RSPAMD_LOG_CONSOLE, TYPE_MAIN, rspamd->cfg); (void)open_log (); g_log_set_default_handler (rspamd_glib_log_function, rspamd->cfg); |