Oops, accidentally calling the wrong function (+log message clarification)

Wed, 24 Jan 2018 09:15:36 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Wed, 24 Jan 2018 09:15:36 +0000
changeset 59
8d0a815022cc
parent 58
170d69da51bb
child 60
10bd7e3906d9

Oops, accidentally calling the wrong function (+log message clarification)

scheduler.py file | annotate | diff | comparison | revisions
--- a/scheduler.py	Wed Jan 24 00:20:10 2018 +0000
+++ b/scheduler.py	Wed Jan 24 09:15:36 2018 +0000
@@ -77,7 +77,7 @@
             ev.insert_immediately_after(self._list)
             self._list=ev
         else:
-            self._list.insert_immediately_after(ev)
+            self._list.insert_after(ev)
 
         self._cond.notify()
 
@@ -113,7 +113,7 @@
 
                 while self._list and self._list.when <= now:
                     ev=self._list
-                    logger.debug("Scheduling event %s" % (ev.name or "(unknown)"))
+                    logger.debug("Scheduler activating %s" % (ev.name or "(unknown)"))
                     # We are only allowed to remove ev from list when ev.cond allows
                     with ev.cond:
                         self._list=ev.next

mercurial