From 09b6436d28f1eb0d11c1c434d177c6bb354b6083 Mon Sep 17 00:00:00 2001 From: Robert van Dijk Date: Fri, 8 Mar 2024 11:57:47 +0100 Subject: [PATCH] Remove old logging --- narrowcast_content/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/narrowcast_content/__init__.py b/narrowcast_content/__init__.py index 4e7938a..99ce427 100644 --- a/narrowcast_content/__init__.py +++ b/narrowcast_content/__init__.py @@ -1,6 +1,5 @@ import logging from logging import Formatter, FileHandler -from datetime import datetime from flask import Flask, request, abort, session @@ -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