Skip to content

Commit

Permalink
[Minor] Increase log level as this is essential
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 27, 2023
1 parent 6792574 commit daa3854
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/libmime/scan_result.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
10 changes: 5 additions & 5 deletions src/plugins/fuzzy_check.c
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit daa3854

Please sign in to comment.