commit daa3854: [Minor] Increase log level as this is essential
Vsevolod Stakhov
vsevolod at rspamd.com
Sun Aug 27 21:28:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-08-27 22:22:54 +0100
URL: https://github.com/rspamd/rspamd/commit/daa3854c3415c2b78a725d5f69f89c312450b712 (HEAD -> master)
[Minor] Increase log level as this is essential
---
src/libmime/scan_result.c | 5 +----
src/plugins/fuzzy_check.c | 10 +++++-----
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,
More information about the Commits
mailing list