Skip to content

Commit

Permalink
Fixed logging empty lines (#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Sep 13, 2023
1 parent f251b7d commit 79de6d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/dependencies/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,12 @@ def get_progress_amount():
if nextline == b"" and process.poll() is not None:
break
line = nextline.decode("utf-8").strip()
if not line:
continue

if logger is not None and not line.startswith("Progress:"):
logger.info(line)

# The Collecting step of pip. It tells us what package is being installed.
if "Collecting" in line:
match = COLLECTING_REGEX.search(line)
Expand Down

0 comments on commit 79de6d3

Please sign in to comment.