Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
use_rq_logger_to_print_on_worker (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodyparizada committed Dec 10, 2018
1 parent 66d07c1 commit d36a5e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion payment/log.py
Expand Up @@ -67,4 +67,4 @@ def init():

def get(name=__name__):
"""Return a structlog."""
return wrap_logger(logging.getLogger('payment.' + name)).bind()
return wrap_logger(logging.getLogger(name)).bind()
2 changes: 1 addition & 1 deletion payment/queue.py
Expand Up @@ -12,7 +12,7 @@


q = Queue(connection=redis_conn)
log = get_log()
log = get_log('rq.worker')


def enqueue_send_payment(payment_request: PaymentRequest):
Expand Down

0 comments on commit d36a5e4

Please sign in to comment.