mirror of
https://github.com/django/daphne.git
synced 2025-07-13 01:12:17 +03:00
Disabled log printing
This commit is contained in:
parent
25e613026e
commit
8975f75c8c
|
@ -5,7 +5,6 @@ from argparse import ArgumentError, Namespace
|
||||||
|
|
||||||
from asgiref.compatibility import guarantee_single_callable
|
from asgiref.compatibility import guarantee_single_callable
|
||||||
|
|
||||||
from .access import AccessLogGenerator
|
|
||||||
from .endpoints import build_endpoint_description_strings
|
from .endpoints import build_endpoint_description_strings
|
||||||
from .server import Server
|
from .server import Server
|
||||||
from .utils import import_by_path
|
from .utils import import_by_path
|
||||||
|
@ -213,6 +212,7 @@ class CommandLineInterface:
|
||||||
# Decode args
|
# Decode args
|
||||||
args = self.parser.parse_args(args)
|
args = self.parser.parse_args(args)
|
||||||
# Set up logging
|
# Set up logging
|
||||||
|
if args.verbosity >= 1:
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level={
|
level={
|
||||||
0: logging.WARN,
|
0: logging.WARN,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user