Skip to content

Commit

Permalink
logging reorg.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 3, 2016
1 parent 585cd82 commit e526b8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions huey/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,16 +300,17 @@ def start(self):
self.workers,
self.worker_type,
os.getpid()))
self._logger.info('Scheduler runs every %s seconds.' % (
self.scheduler_interval))
self._logger.info('Periodic tasks are %s.' % (
'enabled' if self.periodic else 'disabled'))

self._set_signal_handler()

msg = ['The following commands are available:']
for command in registry._registry:
msg.append('+ %s' % command.replace('queuecmd_', ''))
self._logger.info('\n'.join(msg))
self._logger.info('Scheduler runs every %s seconds.' % (
self.scheduler_interval))
self._logger.info('Periodic tasks are %s.' % (
'enabled' if self.periodic else 'disabled'))

self.scheduler.start()
for worker in self.worker_threads:
Expand Down

0 comments on commit e526b8f

Please sign in to comment.