summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-27 22:22:54 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-27 22:22:54 +0100
commitdaa3854c3415c2b78a725d5f69f89c312450b712 (patch)
tree6252dab26771f77c9191d38335e1cc18b382809d
parent67925746968a9fffd08259d6c6712e1fbd31298a (diff)
downloadrspamd-daa3854c3415c2b78a725d5f69f89c312450b712.tar.gz
rspamd-daa3854c3415c2b78a725d5f69f89c312450b712.zip
[Minor] Increase log level as this is essential
-rw-r--r--src/libmime/scan_result.c5
-rw-r--r--src/plugins/fuzzy_check.c10
2 files changed, 6 insertions, 9 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c
index e84d92494..a6bc0cb8b 100644
--- a/src/libmime/scan_result.c
+++ b/src/libmime/scan_result.c
@@ -1091,10 +1091,7 @@ rspamd_find_metric_result(struct rspamd_task *task,
{
struct rspamd_scan_result *res;
- if (name == NULL) {
- return task->result;
- }
- else if (strcmp(name, "default") == 0) {
+ if (name == NULL || strcmp(name, "default") == 0) {
return task->result;
}
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index c21c5f4fb..6e59c45b8 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -1,11 +1,11 @@
-/*-
- * Copyright 2016 Vsevolod Stakhov
+/*
+ * 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
+ * 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,
@@ -2296,7 +2296,7 @@ fuzzy_insert_result(struct fuzzy_client_session *session,
tm_split.tm_hour, tm_split.tm_min, tm_split.tm_sec);
if (is_fuzzy) {
- msg_info_task(
+ msg_notice_task(
"found fuzzy hash(%s) %s (%*xs requested) with weight: "
"%.2f, probability %.2f, in list: %s:%d%s; added on %s",
type,
@@ -2310,7 +2310,7 @@ fuzzy_insert_result(struct fuzzy_client_session *session,
timebuf);
}
else {
- msg_info_task(
+ msg_notice_task(
"found exact fuzzy hash(%s) %s with weight: "
"%.2f, probability %.2f, in list: %s:%d%s; added on %s",
type,