diff --git a/zappa/handler.py b/zappa/handler.py index c1a7ff5e6..7287e09f7 100644 --- a/zappa/handler.py +++ b/zappa/handler.py @@ -30,7 +30,7 @@ # Set up logging logging.basicConfig() -logger = logging.getLogger() +logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) diff --git a/zappa/wsgi.py b/zappa/wsgi.py index 9f3051f04..f40407f62 100644 --- a/zappa/wsgi.py +++ b/zappa/wsgi.py @@ -168,7 +168,7 @@ def common_log(environ, response, response_time: Optional[int] = None): response_time: response time in micro-seconds """ - logger = logging.getLogger() + logger = logging.getLogger(__name__) if response_time: formatter = ApacheNCSAFormatter(with_response_time=True)