diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-08 16:51:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-08 16:51:04 +0000 |
commit | b11f8216f0db7a79b13b83b39e6a6ab1e7bad108 (patch) | |
tree | 71f8aad69fd7effe2cf31487a0ab2856653ef8cd /src/libstat/classifiers | |
parent | cd568d70852da3d948783060d70bb3de531266e2 (diff) | |
download | rspamd-b11f8216f0db7a79b13b83b39e6a6ab1e7bad108.tar.gz rspamd-b11f8216f0db7a79b13b83b39e6a6ab1e7bad108.zip |
[Project] Add some stats
Diffstat (limited to 'src/libstat/classifiers')
-rw-r--r-- | src/libstat/classifiers/classifiers.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libstat/classifiers/classifiers.h b/src/libstat/classifiers/classifiers.h index f6109c3e5..949408c6b 100644 --- a/src/libstat/classifiers/classifiers.h +++ b/src/libstat/classifiers/classifiers.h @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Vsevolod Stakhov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef CLASSIFIERS_H #define CLASSIFIERS_H @@ -80,6 +96,10 @@ extern gint rspamd_bayes_log_id; rspamd_bayes_log_id, "bayes", task->task_pool->tag.uid, \ G_STRFUNC, \ __VA_ARGS__) +#define msg_debug_bayes_cfg(...) rspamd_conditional_debug_fast(NULL, NULL, \ + rspamd_bayes_log_id, "bayes", cfg->cfg_pool->tag.uid, \ + G_STRFUNC, \ + __VA_ARGS__) #ifdef __cplusplus |