diff options
Diffstat (limited to 'gn_auth')
-rw-r--r-- | gn_auth/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py index 658f034..3b663dc 100644 --- a/gn_auth/__init__.py +++ b/gn_auth/__init__.py @@ -70,7 +70,7 @@ def gunicorn_loggers(appl: Flask) -> None: appl.logger.setLevel(logger.level) -def setup_logging(appl: Flask) -> Callable[[Flask], None]: +def setup_logging(appl: Flask) -> None: """ Setup the loggers according to the WSGI server used to run the application. """ @@ -80,8 +80,8 @@ def setup_logging(appl: Flask) -> Callable[[Flask], None]: software, *_version_and_comments = os.environ.get( "SERVER_SOFTWARE", "").split('/') if bool(software): - return gunicorn_loggers(appl) - return dev_loggers(appl) + gunicorn_loggers(appl) + dev_loggers(appl) def create_app(config: Optional[dict] = None) -> Flask: |