diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-03 21:28:50 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-03 21:28:50 +0300 |
commit | 2f551bd813a96567bac80aeaa186b706571b69f7 (patch) | |
tree | ae3705b93cbfe24376221b060b22d60ab6cac622 /src/util.c | |
parent | 56379fcf26379a1588e3ca9ad4bdb1c7f370d2c7 (diff) | |
download | rspamd-2f551bd813a96567bac80aeaa186b706571b69f7.tar.gz rspamd-2f551bd813a96567bac80aeaa186b706571b69f7.zip |
* Many major fixes to statfiles:
- fix bug with mmapping files: new addresses must NOT be allocated in shared memory by themselves
- fix bug with winnow classifier that totally brokes it down
- fix bug with too much grow of values
* Use double precission values in statistics
* Add statistics for statfiles
* Add more informative data to output of LEARN command (weight of incoming message)
* Add weight to output of classifier as well
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 2e22772c2..000aeb43e 100644 --- a/src/util.c +++ b/src/util.c @@ -1153,6 +1153,7 @@ get_statfile_by_symbol (statfile_pool_t *pool, struct classifier_config *ccf, GList *cur; if (pool == NULL || ccf == NULL || symbol == NULL) { + msg_err ("get_statfile_by_symbol: invalid input arguments"); return NULL; } @@ -1166,6 +1167,7 @@ get_statfile_by_symbol (statfile_pool_t *pool, struct classifier_config *ccf, cur = g_list_next (cur); } if (*st == NULL) { + msg_info ("get_statfile_by_symbol: cannot find statfile with symbol %s", symbol); return NULL; } @@ -1178,6 +1180,9 @@ get_statfile_by_symbol (statfile_pool_t *pool, struct classifier_config *ccf, return NULL; } res = statfile_pool_open (pool, (*st)->path, (*st)->size, FALSE); + if (res == NULL) { + msg_err ("get_statfile_by_symbol: cannot open statfile %s after creation", (*st)->path); + } } } } |