Skip to content

Commit a3ab393

Browse files
committed
Removed fatal logs
1 parent 93d451e commit a3ab393

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/PyMatcha/routes/api/auth/register.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def api_create_user():
4949
last_name=data["last_name"],
5050
)
5151
except ConflictError as e:
52-
current_app.logger.fatal("Conflict error on user register: {}".format(e))
52+
current_app.logger.warning("Conflict error on user register: {}".format(e))
5353
raise e
5454
else:
5555
token = generate_confirmation_token(email=data["email"], token_type="confirm")

backend/PyMatcha/utils/orm/_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def delete(self):
213213
logging.debug("deleted {} from table {}".format(self.id, self.table_name))
214214
c.close()
215215
else:
216-
logging.fatal("{} Not in table {}".format(self.id, self.table_name))
216+
logging.warning("{} Not in table {}".format(self.id, self.table_name))
217217
raise Exception("{} Not in table {}".format(self.id, self.table_name))
218218

219219
@classmethod

0 commit comments

Comments
 (0)