Skip to content

Commit

Permalink
Merge pull request #290 from nextcloud/non-existing-log
Browse files Browse the repository at this point in the history
lower log level of 'Tried to scan non file'
  • Loading branch information
icewind1991 authored Aug 24, 2023
2 parents fca5260 + e0dc5fb commit 03eabb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
This application inspects files that are uploaded to Nextcloud for viruses before they are written to the Nextcloud storage. If a file is identified as a virus, it is either logged or not uploaded to the server. The application relies on the underlying ClamAV virus scanning engine, which the admin points Nextcloud to when configuring the application. Alternatively, a Kaspersky Scan Engine can be configured, which has to run on a separate server.
For this app to be effective, the ClamAV virus definitions should be kept up to date. Also note that enabling this app will impact system performance as additional processing is required for every upload. More information is available in the Antivirus documentation.
]]></description>
<version>5.2.1</version>
<version>5.2.2</version>
<licence>agpl</licence>

<author>Manuel Delgado</author>
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJob/BackgroundScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private function processFiles(iterable $fileIds): int {
// increased only for successfully scanned files
$count++;
} else {
$this->logger->error('Tried to scan non file');
$this->logger->info('Tried to scan non file');
}
} catch (\Exception $e) {
$this->logger->error(__METHOD__ . ', exception: ' . $e->getMessage(), ['app' => 'files_antivirus', 'exception' => $e]);
Expand Down

0 comments on commit 03eabb7

Please sign in to comment.