From daa3854c3415c2b78a725d5f69f89c312450b712 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 27 Aug 2023 22:22:54 +0100 Subject: [PATCH] [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, -- 2.39.5