From 88a548fabe8f052ad6c6d62e61b9127d68ced36f Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Fri, 15 Nov 2024 19:28:20 +0100 Subject: [PATCH] Make notice instead of error message Signed-off-by: Melroy van den Berg --- lib/Item.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/Item.php b/lib/Item.php index f1f1d1fa..5cc27f01 100644 --- a/lib/Item.php +++ b/lib/Item.php @@ -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()); } /** @@ -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 */