From 95d6de150568ab8694d56bb25718d261a1631924 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 22 Nov 2024 10:09:25 -0600 Subject: Fix type and return of the `setup_logging` function. --- gn_auth/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gn_auth/__init__.py') 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: -- cgit v1.2.3