Skip to content

Commit

Permalink
Move all log statements to level "debug"
Browse files Browse the repository at this point in the history
  • Loading branch information
Schweigi committed Jul 7, 2016
1 parent 5dc88d0 commit 228afd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions eb_sqs/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def execute(self, msg):
try:
if settings.DEAD_LETTER_MODE:
# If in dead letter mode only try to run callback. Do not execute task.
logger.info(
logger.debug(
'Task %s (%s) not executed (dead letter queue)',
worker_task.abs_func_name,
worker_task.id,
)

self._remove_from_group(worker_task)
else:
logger.info(
logger.debug(
'Execute task %s (%s) with args: %s and kwargs: %s',
worker_task.abs_func_name,
worker_task.id,
Expand Down Expand Up @@ -93,7 +93,7 @@ def _enqueue_task(self, worker_task, delay, execute_inline, is_retry, count_retr

self._add_to_group(worker_task)

logger.info('%s task %s (%s): %s, %s (%s%s)',
logger.debug('%s task %s (%s): %s, %s (%s%s)',
'Retrying' if is_retry else 'Delaying',
worker_task.abs_func_name,
worker_task.id,
Expand Down Expand Up @@ -139,7 +139,7 @@ def _execute_task(self, worker_task):
def _add_to_group(self, worker_task):
# type: (WorkerTask) -> None
if worker_task.group_id and not worker_task.retry_scheduled:
logger.info(
logger.debug(
'Add task %s (%s) to group %s',
worker_task.abs_func_name,
worker_task.id,
Expand All @@ -151,7 +151,7 @@ def _add_to_group(self, worker_task):
def _remove_from_group(self, worker_task):
# type: (WorkerTask) -> None
if worker_task.group_id and not worker_task.retry_scheduled:
logger.info(
logger.debug(
'Remove task %s (%s) from group %s',
worker_task.abs_func_name,
worker_task.id,
Expand All @@ -173,7 +173,7 @@ def _execute_group_callback(self, worker_task):

callback = getattr(func_module, func_name)

logger.info(
logger.debug(
'All tasks in group %s finished. Trigger callback %s',
worker_task.group_id,
'{}.{}'.format(callback.__module__, callback.func_name),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='django-eb-sqs',
version='0.92',
version='0.93',
package_dir={'eb_sqs': 'eb_sqs'},
include_package_data=True,
packages=find_packages(),
Expand Down

0 comments on commit 228afd7

Please sign in to comment.