Skip to content

Commit

Permalink
Merge pull request #246 from metno/move_logging
Browse files Browse the repository at this point in the history
do not flood the logs with None strings
  • Loading branch information
magnarem authored Oct 11, 2024
2 parents e95bbee + 262137f commit dd406d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmci/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dd406d5

Please sign in to comment.