summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcp/__init__.py b/ogcp/__init__.py
index 58de9a4..a468101 100644
--- a/ogcp/__init__.py
+++ b/ogcp/__init__.py
@@ -17,6 +17,12 @@ app = Flask(__name__)
app.config.from_json(ogcp_cfg_path)
app.secret_key = urandom(16)
+class NoScopeStatus(logging.Filter):
+ def filter(self, record):
+ return 'GET /scopes/status' not in record.getMessage()
+
+logging.getLogger("werkzeug").addFilter(NoScopeStatus())
+
babel = Babel(app)
csrf = CSRFProtect(app)
bootstrap = Bootstrap(app)