Skip to content

Commit

Permalink
remove debug writing file
Browse files Browse the repository at this point in the history
  • Loading branch information
nferc committed Mar 25, 2024
1 parent 6ef96a0 commit 4f52d24
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions avgate/avgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,8 @@ def phr_service() -> Response:
logger.debug("no new body, copying content from konnektor")
data = upstream.content

# debugging only - remove after testing
if EICAR in data:
fn = f"/tmp/{request.path.replace('/', '_')}.xml"
with open(fn, "wb") as f:
f.write(data)
logger.error(f"found EICAR signature - see content in file {fn}")
logger.error("found EICAR signature")

response = create_response(data, upstream)

Expand Down

0 comments on commit 4f52d24

Please sign in to comment.