[tor-commits] [ooni-probe/master] Make refresh_deck_list less noisy (#700)

art at torproject.org art at torproject.org
Fri Jan 13 12:39:58 UTC 2017


commit 2857b26a2b932b6080c6ba8ca16d5a16e7de1c42
Author: Simone Basso <bassosimone at gmail.com>
Date:   Thu Dec 8 11:58:48 2016 +0100

    Make refresh_deck_list less noisy (#700)
    
    Do not emit messages regarding what's going on under the hood
    that may end up confusing users such as /me.
    
    Discussed on IRC with @hellais.
---
 ooni/agent/scheduler.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ooni/agent/scheduler.py b/ooni/agent/scheduler.py
index 262062e..d63a6b1 100644
--- a/ooni/agent/scheduler.py
+++ b/ooni/agent/scheduler.py
@@ -396,16 +396,16 @@ class SchedulerService(service.MultiService):
             if info in to_enable:
                 # If the task is already scheduled there is no need to
                 # enable it.
-                log.msg("The deck {0} is already scheduled".format(deck_id))
+                log.debug("The deck {0} is already scheduled".format(deck_id))
                 to_enable.remove(info)
             else:
                 # If one of the tasks that is scheduled is no longer in the
                 # scheduled tasks. We should disable it.
-                log.msg("The deck task {0} should be disabled".format(deck_id))
+                log.debug("The deck task {0} should be disabled".format(deck_id))
                 self.unschedule(scheduled_task)
 
         for deck_id, schedule in to_enable:
-            log.msg("Scheduling to run {0}".format(deck_id))
+            log.debug("Scheduling to run {0}".format(deck_id))
             self.schedule(RunDeck(self.director, deck_id, schedule))
 
     def _task_did_not_run(self, failure, task):





More information about the tor-commits mailing list