Skip to content

Commit

Permalink
debug clamd
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bayr committed Nov 7, 2024
1 parent 1923e4c commit 72cbda6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sddi-urban/clamav/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def instream(self, buff):

result = self._recv_response()

#print('debug: instream result:')
#print(result)
print('debug: instream result:')
print(result)

if len(result) > 0:
if result == 'INSTREAM size limit exceeded. ERROR':
Expand Down Expand Up @@ -250,7 +250,6 @@ def _recv_response(self):
try:
with contextlib.closing(self.clamd_socket.makefile('rb')) as f:
print('debug: _recv_response 2')
print(f.readline().decode('utf-8').strip())
return f.readline().decode('utf-8').strip()

except (socket.error, socket.timeout):
Expand Down

0 comments on commit 72cbda6

Please sign in to comment.