diff --git a/jobserv/api/__init__.py b/jobserv/api/__init__.py index cfd7a7f8..1ae33ef4 100644 --- a/jobserv/api/__init__.py +++ b/jobserv/api/__init__.py @@ -62,3 +62,7 @@ def unexpected_error(e): return jsendify(data, 500) app.register_blueprint(bp) + + @app.route("/healthz") + def _healthz(): + return "" diff --git a/jobserv/flask.py b/jobserv/flask.py index 028c0dd8..f23db402 100644 --- a/jobserv/flask.py +++ b/jobserv/flask.py @@ -64,7 +64,7 @@ def create_app(settings_object="jobserv.settings"): # this gets called a couple times. if not getattr(create_app, "__logging_hack_initialized", None): json_logging.init_flask(enable_json=True) - json_logging.init_request_instrument(app) + json_logging.init_request_instrument(app, exclude_url_patterns=["/healthz"]) json_logging.config_root_logger() create_app.__logging_hack_initialized = True