diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-18 20:31:21 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-18 20:31:21 +0300 |
commit | 5f0da61541dd368961694b26766b12d051227844 (patch) | |
tree | 98f069f3db91ed38e7044ef022149e6bb6576121 /src/cfg_file.y | |
parent | 9e9ced325226942bbfb6c4aa307f388044e29b23 (diff) | |
download | rspamd-5f0da61541dd368961694b26766b12d051227844.tar.gz rspamd-5f0da61541dd368961694b26766b12d051227844.zip |
* Make sample config more complete
* Fix bugs with config file parsing
* Fix bugs with creating sockets and reading commands
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index 59d70b160..641220870 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -464,10 +464,10 @@ loggingtype: LOG_TYPE EQSIGN LOG_TYPE_CONSOLE { cfg->log_type = RSPAMD_LOG_CONSOLE; } - LOG_TYPE EQSIGN LOG_TYPE_SYSLOG { + | LOG_TYPE EQSIGN LOG_TYPE_SYSLOG { cfg->log_type = RSPAMD_LOG_SYSLOG; } - LOG_TYPE EQSIGN LOG_TYPE_FILE { + | LOG_TYPE EQSIGN LOG_TYPE_FILE { cfg->log_type = RSPAMD_LOG_FILE; } ; @@ -476,13 +476,13 @@ logginglevel: LOG_LEVEL EQSIGN LOG_LEVEL_DEBUG { cfg->log_level = G_LOG_LEVEL_DEBUG; } - LOG_LEVEL EQSIGN LOG_LEVEL_INFO { + | LOG_LEVEL EQSIGN LOG_LEVEL_INFO { cfg->log_level = G_LOG_LEVEL_INFO | G_LOG_LEVEL_MESSAGE; } - LOG_LEVEL EQSIGN LOG_LEVEL_WARNING { + | LOG_LEVEL EQSIGN LOG_LEVEL_WARNING { cfg->log_level = G_LOG_LEVEL_WARNING; } - LOG_LEVEL EQSIGN LOG_LEVEL_ERROR { + | LOG_LEVEL EQSIGN LOG_LEVEL_ERROR { cfg->log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL; } ; @@ -621,7 +621,7 @@ statfilesize: } cur_statfile->size = $3; } - | WEIGHT EQSIGN SIZELIMIT { + | SIZE EQSIGN SIZELIMIT { if (cur_statfile == NULL) { cur_statfile = memory_pool_alloc0 (cfg->cfg_pool, sizeof (struct statfile)); } |