]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Increase log level as this is essential
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 27 Aug 2023 21:22:54 +0000 (22:22 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 27 Aug 2023 21:22:54 +0000 (22:22 +0100)
src/libmime/scan_result.c
src/plugins/fuzzy_check.c

index e84d924944bcb492a7ed662d64ed27119a6f4171..a6bc0cb8b8cbab85dccfd4a28f06819e820528c4 100644 (file)
@@ -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;
        }
 
index c21c5f4fb058c23bbf722d91d03fcd67eff79d3e..6e59c45b8042c024270144668eee649b7b43386c 100644 (file)
@@ -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,