Skip to content

Commit

Permalink
Merge pull request #6756 from yarikoptic/enh-log-progress-start
Browse files Browse the repository at this point in the history
ENH: LogProgressBar to gain "start" reporting
  • Loading branch information
yarikoptic committed Jun 14, 2022
2 parents bbe20d0 + 945d8ff commit 797dde3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datalad/ui/progressbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def _naturaldelta(x):
if x > 2 \
else LogProgressBar._naturalfloat(x) + ' sec'

def start(self, initial=0):
super().start(initial=initial)
msg = " with initial specified to be {initial}" if initial else ''
lgr.info("Start %s%s", self.label, msg)

def finish(self, partial=False):
msg, args = ' %s ', [self.label]

Expand Down

0 comments on commit 797dde3

Please sign in to comment.