We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3b3ac commit 44f8dedCopy full SHA for 44f8ded
backend/restapi_server.py
@@ -71,6 +71,16 @@ def main():
71
app.register_blueprint(attrs_api)
72
app.register_blueprint(project_api)
73
74
+ # hook up request signal to log request by UI
75
+ @app.before_request
76
+ def before_request():
77
+ log(f"{request.method} {request.url}")
78
+
79
+ @app.after_request
80
+ def after_request(response):
81
+ log(f"{request.method} {request.url} {response.status_code} - DONE")
82
+ return response
83
84
# log app server started
85
log("App server is running...")
86
0 commit comments