From 4f16f9c64e958a7459e1f4631fe1b137b82a9467 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 3 Jun 2015 13:34:43 +0200 Subject: [PATCH] Deduplicate debug msg --- vdirsyncer/cli/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vdirsyncer/cli/__init__.py b/vdirsyncer/cli/__init__.py index cbfeaca..b910d09 100644 --- a/vdirsyncer/cli/__init__.py +++ b/vdirsyncer/cli/__init__.py @@ -77,7 +77,9 @@ main = app def max_workers_callback(ctx, param, value): if value == 0 and ctx.obj['verbosity'] == log.logging.DEBUG: - return 1 + value = 1 + + cli_logger.debug('Using {} maximal workers.'.format(value)) return value @@ -113,7 +115,6 @@ def sync(pairs, force_delete, max_workers): from .utils import parse_pairs_args, WorkerQueue general, all_pairs, all_storages = ctx.obj['config'] - cli_logger.debug('Using {} maximal workers.'.format(max_workers)) wq = WorkerQueue(max_workers) wq.handled_jobs = set() @@ -139,7 +140,6 @@ def discover(pairs, max_workers): from .tasks import discover_collections from .utils import WorkerQueue general, all_pairs, all_storages = ctx.obj['config'] - cli_logger.debug('Using {} maximal workers.'.format(max_workers)) wq = WorkerQueue(max_workers) for pair in (pairs or all_pairs):