Only log added task in verbose mode
This commit is contained in:
parent
6b89d05a3c
commit
74366379ba
1 changed files with 6 additions and 4 deletions
|
@ -489,10 +489,12 @@ class WorkerManager(object):
|
||||||
self.tasks.append(task)
|
self.tasks.append(task)
|
||||||
|
|
||||||
self.started_task_num += 1
|
self.started_task_num += 1
|
||||||
self.log.debug(
|
if config.verbose:
|
||||||
"New task: %s, peer lock: %s, priority: %s, optional_hash_id: %s, tasks started: %s" %
|
self.log.debug(
|
||||||
(task["inner_path"], peers, priority, optional_hash_id, self.started_task_num)
|
"New task: %s, peer lock: %s, priority: %s, optional_hash_id: %s, tasks started: %s" %
|
||||||
)
|
(task["inner_path"], peers, priority, optional_hash_id, self.started_task_num)
|
||||||
|
)
|
||||||
|
|
||||||
self.time_task_added = time.time()
|
self.time_task_added = time.time()
|
||||||
|
|
||||||
if optional_hash_id:
|
if optional_hash_id:
|
||||||
|
|
Loading…
Reference in a new issue