From 262137f700eccd8408eaa218fa70ef7cc7eb7831 Mon Sep 17 00:00:00 2001 From: charlien Date: Fri, 11 Oct 2024 11:32:54 +0200 Subject: [PATCH] do not flood the logs with None strings --- dmci/api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmci/api/app.py b/dmci/api/app.py index 2e76a0c..0589f57 100644 --- a/dmci/api/app.py +++ b/dmci/api/app.py @@ -72,8 +72,8 @@ def __init__(self): @self.route("/v1/insert", methods=["POST"]) def post_insert(): msg, code, failed = self._insert_update_method_post("insert", request) - logger.info(f"failed {failed}") if failed: + logger.info(f"failed {failed}") if "file" in failed: FILE_DIST_FAIL.labels(path=request.path).inc() if "pycsw" in failed: