mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
decrease final verbosity further; minor tidy
This commit is contained in:
+3
-3
@@ -67,10 +67,10 @@ class Tqdm(tqdm):
|
||||
kwargs = kwargs.copy()
|
||||
kwargs.setdefault("unit_scale", True)
|
||||
if bytes:
|
||||
kwargs = merge(
|
||||
dict(unit="B", unit_scale=True, unit_divisor=1024, miniters=1),
|
||||
kwargs,
|
||||
bytes_defaults = dict(
|
||||
unit="B", unit_scale=True, unit_divisor=1024, miniters=1
|
||||
)
|
||||
kwargs = merge(bytes_defaults, kwargs)
|
||||
self.desc_persist = desc
|
||||
if disable is None:
|
||||
disable = logger.getEffectiveLevel() > level
|
||||
|
||||
@@ -41,11 +41,7 @@ def checkout(self, target=None, with_deps=False, force=False, recursive=False):
|
||||
if total == 0:
|
||||
logger.info("Nothing to do")
|
||||
with Tqdm(
|
||||
total=total,
|
||||
unit="file",
|
||||
desc="Checkout",
|
||||
disable=total == 0,
|
||||
leave=logger.getEffectiveLevel() < logging.CRITICAL,
|
||||
total=total, unit="file", desc="Checkout", disable=total == 0
|
||||
) as pbar:
|
||||
for stage in stages:
|
||||
if stage.locked:
|
||||
|
||||
Reference in New Issue
Block a user