From 2b09cc55f5b25f5b08ffcf18a7203284dc6e017d Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 20 Jun 2012 09:06:58 -0400 Subject: [PATCH] Debug message when a duplicate game is submitted. --- xonstat/views/submission.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 68610cf..950450f 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -273,6 +273,9 @@ def create_game(session=None, start_dt=None, game_type_cd=None, try: session.query(Game).filter(Game.server_id==server_id).\ filter(Game.match_id==match_id).one() + + log.debug("Error: game with same server and match_id found! Ignoring.") + # if a game under the same server and match_id found, # this is a duplicate game and can be ignored raise pyramid.httpexceptions.HTTPOk('OK') -- 2.39.2