Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Use print(flush=True) to log scan progress #379

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

maeve-fpf
Copy link
Contributor

When looking at logs of a scan container with kubectl logs or in ELK, nothing is actually printed until the entire scan is done. I believe this is because block buffering is being used and not enough data is printed for force a write. Instead, let's force a flush after each line. We don't have to call .write() for this; we can just use print().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant