Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions telegram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def log(func):

@functools.wraps(func)
def decorator(self, *args, **kwargs):
logger.debug('Entering: %s', func.__name__)
#logger.debug('Entering: %s', func.__name__)
result = func(self, *args, **kwargs)
logger.debug(result)
logger.debug('Exiting: %s', func.__name__)
#logger.debug('Exiting: %s', func.__name__)
return result

return decorator
Expand Down
6 changes: 3 additions & 3 deletions telegram/ext/jobqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def tick(self):
"""
now = time.time()

self.logger.debug('Ticking jobs with t=%f' % now)
#self.logger.debug('Ticking jobs with t=%f' % now)
while not self.queue.empty():
t, j = self.queue.queue[0]
self.logger.debug('Peeked at %s with t=%f' % (j.name, t))
#self.logger.debug('Peeked at %s with t=%f' % (j.name, t))

if t < now:
self.queue.get()
Expand All @@ -106,7 +106,7 @@ def tick(self):
self.put(j.run, j.interval)
continue

self.logger.debug('Next task isn\'t due yet. Finished!')
#self.logger.debug('Next task isn\'t due yet. Finished!')
break

def start(self):
Expand Down