mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
Fix missed logger name (#138)
This commit is contained in:
parent
6b0845ef22
commit
681616caa4
|
@ -20,7 +20,7 @@ def setup_logger(name, verbosity=1):
|
|||
|
||||
# Set up daphne protocol loggers
|
||||
for module in ["daphne.ws_protocol", "daphne.http_protocol"]:
|
||||
daphne_logger = logging.getLogger()
|
||||
daphne_logger = logging.getLogger(module)
|
||||
daphne_logger.addHandler(handler)
|
||||
daphne_logger.setLevel(logging.DEBUG if verbosity > 1 else logging.INFO)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user