Skip to content

Commit

Permalink
Remove after request
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Oct 30, 2023
1 parent a9f342f commit 125ebc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@

@app.before_request
def log_request_info():
app.logger.info(("Received Request {0} \"{1} {2}\"\r\n".format(request.remote_addr, request.method, request.url)))
app.logger.info(("{0} \"{1} {2}\"\r\n".format(request.remote_addr, request.method, request.url)))

# @app.after_request
# def access_log(response):
# app.logger.info(("{0} \"{1} {2}\" {3}\r\n".format(request.remote_addr, request.method, request.url, response.status_code)))

@app.after_request
def access_log(response):
app.logger.info(("{0} \"{1} {2}\" {3}\r\n".format(request.remote_addr, request.method, request.url, response.status_code)))


# APIS: try to load new data, if doesn't work, get most recent
@app.route("/api/apis")
Expand Down

0 comments on commit 125ebc0

Please sign in to comment.