Skip to content

Commit ed24990

Browse files
committed
Cleaner project export progress log status
1 parent 2825247 commit ed24990

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sonar/projects.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,8 @@ def __export_thread(queue: Queue[Project], results: dict[str, str], export_setti
14901490
with _CLASS_LOCK:
14911491
export_settings["EXPORTED"] += 1
14921492
nb, tot = export_settings["EXPORTED"], export_settings["NBR_PROJECTS"]
1493-
log.debug("%d/%d projects exported (%d%%)", nb, tot, (nb * 100) // tot)
1494-
if nb % 10 == 0 or tot - nb < 10:
1495-
log.info("%d/%d projects exported (%d%%)", nb, tot, (nb * 100) // tot)
1493+
lvl = log.INFO if nb % 10 == 0 or tot - nb < 10 else log.DEBUG
1494+
log.log(lvl, "%d/%d projects exported (%d%%)", nb, tot, (nb * 100) // tot)
14961495
queue.task_done()
14971496

14981497

0 commit comments

Comments
 (0)