Skip to content

Commit

Permalink
422 HTTP response is valid response and should not mess error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
harminius committed Nov 30, 2023
1 parent 9201e0c commit ad0985c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/mergin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ def log_bad_request(response):
# request which would result in conflict, e.g. creating the same project again
logging.warning(f"HTTP 409: {response.data}")
elif response.status_code == 422:
# request was valid but still could not be processed, e.g. geodiff error
logging.error(f"HTTP 422: {response.data}", exc_info=True)
# request was valid but still could not be processed, e.g. limits error
logging.info(f"HTTP 422: {response.data}", exc_info=True)
else:
# ignore other errors
pass
Expand Down

0 comments on commit ad0985c

Please sign in to comment.