Skip to content

Commit

Permalink
Remove old logging
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Mar 8, 2024
1 parent 37b7107 commit 09b6436
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions narrowcast_content/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
from logging import Formatter, FileHandler
from datetime import datetime

from flask import Flask, request, abort, session

Expand Down Expand Up @@ -70,9 +69,3 @@ def check_auth():

if session['token'] not in tokens:
abort(401, "Unauthorized")

@app.after_request
def after_request(response):
timestamp = datetime.now().strftime('[%Y-%b-%d %H:%M]')
logger.error('%s %s %s %s %s %s', timestamp, request.remote_addr, request.method, request.scheme, request.full_path, response.status)
return response

0 comments on commit 09b6436

Please sign in to comment.