Skip to content

Commit

Permalink
More debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
UTXOnly committed Mar 9, 2024
1 parent d70b206 commit 2b62f21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker_stuff/python_stuff/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ async def handle_new_event(request: Request) -> JSONResponse:
return event_obj.evt_response(results_status="true", http_status_code=200)

except psycopg.IntegrityError as e:
logger.debug(f"Entering integ loop")
conn.rollback()
logger.info(f"Event with ID {event_obj.event_id} already exists")
resp = event_obj.evt_response(
Expand All @@ -139,6 +140,7 @@ async def handle_new_event(request: Request) -> JSONResponse:
logger.debug(f"resp integ error is {resp}")
return resp
except Exception as e:
logger.debug(f"Entering gen exc")
conn.rollback()
resp = event_obj.evt_response(
results_status="false", http_status_code=500, message="error: could not connect to the database"
Expand Down

0 comments on commit 2b62f21

Please sign in to comment.