about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-11-22 10:09:25 -0600
committerFrederick Muriuki Muriithi2024-11-22 10:17:20 -0600
commit95d6de150568ab8694d56bb25718d261a1631924 (patch)
treec446971eca7d58855a14353b3f90370c1f0197b8
parent33efc49e347568aa069264b4397227ad9e609800 (diff)
downloadgn-auth-95d6de150568ab8694d56bb25718d261a1631924.tar.gz
Fix type and return of the `setup_logging` function.
-rw-r--r--gn_auth/__init__.py6
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: