@@ -91,8 +91,10 @@ def serve_attachment(filename):
91
91
92
92
93
93
def configure_logging_handler (app : Application ):
94
- """Bind application logging to Gunicorn handler. This is done only in
95
- production and only if Gunicorn logger has any handlers defined.
94
+ """Bind application logging to Gunicorn handler.
95
+
96
+ This is done only in production and only if Gunicorn logger has any
97
+ handlers defined.
96
98
97
99
:param app: application object
98
100
:type app: Application
@@ -105,7 +107,7 @@ def configure_logging_handler(app: Application):
105
107
app .logger .setLevel (gunicorn_logger .level )
106
108
107
109
108
- def configure_database (app : Application ):
110
+ def configure_database (_app : Application ):
109
111
"""Configure application database connectivity.
110
112
111
113
:param app: application object
@@ -141,7 +143,7 @@ def configure_database(app: Application):
141
143
142
144
143
145
def configure_hooks (app : Application ):
144
- """Setup application lifetime hooks.
146
+ """Set up application lifetime hooks.
145
147
146
148
:param app: application object
147
149
:type app: Application
@@ -230,8 +232,9 @@ def server_error_page(error): # pylint: disable=unused-variable
230
232
231
233
232
234
def configure_logging ():
233
- """Configure application logging on prod. This configuration is
234
- overwritten if running under Gunicorn.
235
+ """Configure application logging on prod.
236
+
237
+ This configuration is overwritten if running under Gunicorn.
235
238
"""
236
239
logging .config .dictConfig ({
237
240
'version' : 1 ,
0 commit comments