Skip to content

Commit 47f8e25

Browse files
committed
Add progress bar error only if log level is debug
1 parent 4ff78b4 commit 47f8e25

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

compute_worker/compute_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def show_progress(line, progress):
147147
total=total,
148148
)
149149
except Exception as e:
150-
logger.exception("There was an error showing the progress bar")
150+
if os.environ.get("LOG_LEVEL", "info").lower() == "debug":
151+
logger.exception("There was an error showing the progress bar")
151152

152153

153154
# -----------------------------------------------

0 commit comments

Comments
 (0)