Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added error logging for failed scans.

  • Loading branch information...
commit 47d7589ab961c6f3abb75d1548a3e4009d659be0 1 parent 22bdf68
@hannosch hannosch authored
Showing with 4 additions and 1 deletion.
  1. +2 −0  CHANGES.txt
  2. +2 −1  src/collective/ATClamAV/validator.py
View
2  CHANGES.txt
@@ -4,6 +4,8 @@ Changelog
1.2 - unreleased
----------------
+- Added error logging for failed scans.
+ [hannosch]
1.1 - 2011-02-15
----------------
View
3  src/collective/ATClamAV/validator.py
@@ -54,7 +54,8 @@ def __call__(self, value, *args, **kwargs):
result = scanner.scanBuffer(content, 'socket',
socketpath=settings.clamav_socket,
timeout=float(settings.clamav_timeout))
- except ScanError:
+ except ScanError as e:
+ logger.error('ScanError %s on %s.' % (e, value.filename))
return "There was an error while checking the file for " \
"viruses: Please contact your system administrator."
Please sign in to comment.
Something went wrong with that request. Please try again.