Skip to content

Commit

Permalink
Make notice instead of error message
Browse files Browse the repository at this point in the history
Signed-off-by: Melroy van den Berg <melroy@melroy.org>
  • Loading branch information
melroy89 authored Nov 15, 2024
1 parent bc80d1f commit 88a548f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,12 @@ public function processInfected(Status $status): void {

/**
* * Action to take if this item status is unclear
* *
* * (often due to exceeded size limit)
*
* @param Status $status
*/
public function processUnchecked(Status $status): void {
//TODO: Show warning to the user: The file can not be checked
$this->logError('Not Checked. ' . $status->getDetails());
$this->logNotice('File is not checked: ' . $status->getDetails());
}

/**
Expand Down Expand Up @@ -243,6 +242,13 @@ public function logDebug($message): void {
$this->logger->debug($message . $this->generateExtraInfo(), ['app' => 'files_antivirus']);
}

/**
* @param string $message
*/
public function logNotice($message): void {
$this->logger->notice($message . $this->generateExtraInfo(), ['app' => 'files_antivirus']);
}

/**
* @param string $message
*/
Expand Down

0 comments on commit 88a548f

Please sign in to comment.