Skip to content

Commit

Permalink
Remove orphaned flask-log-request-id package.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Oct 23, 2023
1 parent b005986 commit d41b8b3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions datacube_ows/ogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from time import monotonic

from flask import g, render_template, request
from flask_log_request_id import current_request_id
from sqlalchemy import text

from datacube_ows import __version__
Expand Down Expand Up @@ -225,13 +224,6 @@ def legend(layer, style, dates=None):

# Flask middleware


@app.after_request
def append_request_id(response):
response.headers.add("X-REQUEST-ID", current_request_id())
return response


@app.before_request
def start_timer():
# pylint: disable=assigning-non-slot
Expand Down
3 changes: 0 additions & 3 deletions datacube_ows/startup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from botocore.credentials import RefreshableCredentials
from datacube.utils.aws import configure_s3_access
from flask import Flask, request
from flask_log_request_id import RequestID, RequestIDLogFilter
from rasterio.errors import NotGeoreferencedWarning

from datacube_ows.ows_configuration import get_config
Expand All @@ -33,7 +32,6 @@
def initialise_logger(name=None):
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s'))
handler.addFilter(RequestIDLogFilter())
_LOG = logging.getLogger(name)
_LOG.addHandler(handler)
# If invoked using Gunicorn, link our root logger to the gunicorn logger
Expand Down Expand Up @@ -181,7 +179,6 @@ def parse_config_file(log=None):

def initialise_flask(name):
app = Flask(name.split('.')[0])
RequestID(app)
return app

def pass_through(undecorated):
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
install_requirements = [
'datacube[performance,s3]>=1.8.12',
'flask',
'flask_log_request_id',
'requests',
'affine',
'click',
Expand Down

0 comments on commit d41b8b3

Please sign in to comment.