Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.51 KB | None | 0 0
  1. 2 18:17:23,645 INFO [application.py:288] User g16423391690190087836 is resuming game 8
  2. 2017-01-22 18:17:23,649 INFO [application.py:303] Decided to resume game 8 after final resume from player g16423391690190087836
  3. 2017-01-22 18:17:23,649 INFO [models.py:217] Resuming round 0 for game 8 in state waiting_to_next_round. Starting next round.
  4. 2017-01-22 18:17:23,649 INFO [models.py:223] Starting round 1 for game 8 with 3 players
  5. 2017-01-22 18:17:23,707 DEBUG [application.py:93] Sending 'game_started' to room 'game_8', data={'players': [{'gamer_tag': u'bugfinder9000', 'status': u'active', 'google_i...
  6. 2017-01-22 18:17:23,719 DEBUG [application.py:66] Local send for user 3, event round_start
  7. 2017-01-22 18:17:23,720 DEBUG [application.py:93] Sending 'round_start' to room '4bd9174079e345e9a53f65a7d32cc5ee', data={'hole_cards': {0: 'Kh', 1: 'Kc', 2: '9d', 3: '5d', 4: 'Qs', 5: '6s', 6: '7...
  8. 2017-01-22 18:17:23,728 DEBUG [application.py:66] Local send for user 2, event round_start
  9. 2017-01-22 18:17:23,728 DEBUG [application.py:93] Sending 'round_start' to room '6b0be1d064b84e16a765615c6cc03518', data={'hole_cards': {0: '3c', 1: '6c', 2: '3s', 3: '6h', 4: 'Ks', 5: '9h', 6: '5...
  10. 2017-01-22 18:17:23,734 DEBUG [application.py:66] Local send for user 1, event round_start
  11. 2017-01-22 18:17:23,734 DEBUG [application.py:93] Sending 'round_start' to room '6f0e898c33804397b4d790b7cefb3f35', data={'hole_cards': {0: '2s', 1: 'Jh', 2: '4s', 3: '6d', 4: '4c', 5: 'Th', 6: 'A...
  12. 2017-01-22 18:17:46,097 DEBUG [application.py:456] Received event 'suspend_game'
  13. 2017-01-22 18:17:46,104 INFO [application.py:271] User g16423391690190087836 is suspending game 8
  14. 2017-01-22 18:17:46,113 DEBUG [application.py:93] Sending 'player_suspended' to room 'game_8', data={'gamer_tag': u'combatwombat32', 'game_id': 8, 'google_id': u'g164233916901...
  15. 2017-01-22 18:17:46,136 DEBUG [application.py:66] Local send for user 1, event user_info
  16. 2017-01-22 18:17:46,136 DEBUG [application.py:93] Sending 'user_info' to room '6f0e898c33804397b4d790b7cefb3f35', data={'games': [{'num_players': 3, 'current_round': 4, 'host': u'g12707494354730...
  17. 2017-01-22 18:17:46,255 DEBUG [application.py:456] Received event 'login'
  18. 2017-01-22 18:17:46,255 INFO [application.py:176] Client 6f0e898c33804397b4d790b7cefb3f35 is logging in
  19. 2017-01-22 18:17:46,258 INFO [application.py:180] Found existing account for google id g16423391690190087836
  20. 2017-01-22 18:17:46,279 DEBUG [application.py:66] Local send for user 1, event user_info
  21. 2017-01-22 18:17:46,279 DEBUG [application.py:93] Sending 'user_info' to room '6f0e898c33804397b4d790b7cefb3f35', data={'games': [{'num_players': 3, 'current_round': 4, 'host': u'g12707494354730...
  22. 2017-01-22 18:17:48,711 DEBUG [application.py:456] Received event 'suspend_game'
  23. 2017-01-22 18:17:48,715 INFO [application.py:271] User g07291301208965202879 is suspending game 8
  24. 2017-01-22 18:17:48,724 DEBUG [application.py:93] Sending 'player_suspended' to room 'game_8', data={'gamer_tag': u'HarveyTheDoggo', 'game_id': 8, 'google_id': u'g072913012089...
  25. 2017-01-22 18:17:48,751 DEBUG [application.py:66] Local send for user 2, event user_info
  26. 2017-01-22 18:17:48,751 DEBUG [application.py:93] Sending 'user_info' to room '6b0be1d064b84e16a765615c6cc03518', data={'games': [{'num_players': 3, 'current_round': 4, 'host': u'g12707494354730...
  27. 2017-01-22 18:17:48,957 DEBUG [application.py:456] Received event 'login'
  28. 2017-01-22 18:17:48,959 INFO [application.py:176] Client 6b0be1d064b84e16a765615c6cc03518 is logging in
  29. 2017-01-22 18:17:48,962 INFO [application.py:180] Found existing account for google id g07291301208965202879
  30. 2017-01-22 18:17:48,987 DEBUG [application.py:66] Local send for user 2, event user_info
  31. 2017-01-22 18:17:48,987 DEBUG [application.py:93] Sending 'user_info' to room '6b0be1d064b84e16a765615c6cc03518', data={'games': [{'num_players': 3, 'current_round': 4, 'host': u'g12707494354730...
  32. 2017-01-22 18:17:49,943 DEBUG [application.py:456] Received event 'suspend_game'
  33. 2017-01-22 18:17:49,947 INFO [application.py:271] User g12707494354730532094 is suspending game 8
  34. 2017-01-22 18:17:49,955 DEBUG [application.py:93] Sending 'player_suspended' to room 'game_8', data={'gamer_tag': u'bugfinder9000', 'game_id': 8, 'google_id': u'g1270749435473...
  35. 2017-01-22 18:17:49,978 DEBUG [application.py:66] Local send for user 3, event user_info
  36. 2017-01-22 18:17:49,979 DEBUG [application.py:93] Sending 'user_info' to room '4bd9174079e345e9a53f65a7d32cc5ee', data={'games': [{'num_players': 3, 'current_round': 4, 'host': u'g12707494354730...
  37. 2017-01-22 18:17:50,757 DEBUG [application.py:456] Received event 'login'
  38. 2017-01-22 18:17:50,759 INFO [application.py:176] Client 4bd9174079e345e9a53f65a7d32cc5ee is logging in
  39. 2017-01-22 18:17:50,762 INFO [application.py:180] Found existing account for google id g12707494354730532094
  40. 2017-01-22 18:17:50,794 DEBUG [application.py:66] Local send for user 3, event user_info
  41. 2017-01-22 18:17:50,794 DEBUG [application.py:93] Sending 'user_info' to room '4bd9174079e345e9a53f65a7d32cc5ee', data={'games': [{'num_players': 3, 'current_round': 4, 'host': u'g12707494354730...
  42. 2017-01-22 18:19:24,873 DEBUG [application.py:456] Received event 'host_game'
  43. 2017-01-22 18:19:24,876 INFO [models.py:142] Adding user 'g12707494354730532094' to game None
  44. 2017-01-22 18:19:24,877 INFO [application.py:204] User g12707494354730532094 is hosting a game
  45. 2017-01-22 18:19:24,892 DEBUG [application.py:66] Local send for user 3, event game_hosted
  46. 2017-01-22 18:19:24,892 DEBUG [application.py:93] Sending 'game_hosted' to room '4bd9174079e345e9a53f65a7d32cc5ee', data={'game_id': '9'}
  47. 2017-01-22 18:19:27,806 DEBUG [application.py:456] Received event 'join_game'
  48. 2017-01-22 18:19:27,814 INFO [application.py:220] User g07291301208965202879 is joining game 8
  49. 2017-01-22 18:19:27,814 INFO [models.py:142] Adding user 'g07291301208965202879' to game 8
  50. 2017-01-22 18:19:27,819 ERROR [application.py:448] Error from client 6b0be1d064b84e16a765615c6cc03518
  51. Traceback (most recent call last):
  52. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/flask_socketio/__init__.py", line 588, in _handle_event
  53. ret = handler(*args)
  54. File "application.py", line 223, in on_join_game
  55. db.session.commit()
  56. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 157, in do
  57. return getattr(self.registry(), name)(*args, **kwargs)
  58. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 801, in commit
  59. self.transaction.commit()
  60. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 392, in commit
  61. self._prepare_impl()
  62. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 372, in _prepare_impl
  63. self.session.flush()
  64. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2019, in flush
  65. self._flush(objects)
  66. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2137, in _flush
  67. transaction.rollback(_capture_exception=True)
  68. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
  69. compat.reraise(exc_type, exc_value, exc_tb)
  70. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2101, in _flush
  71. flush_context.execute()
  72. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 373, in execute
  73. rec.execute(self)
  74. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 532, in execute
  75. uow
  76. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 174, in save_obj
  77. mapper, table, insert)
  78. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 800, in _emit_insert_statements
  79. execute(statement, params)
  80. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
  81. return meth(self, multiparams, params)
  82. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
  83. return connection._execute_clauseelement(self, multiparams, params)
  84. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
  85. compiled_sql, distilled_params
  86. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
  87. context)
  88. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
  89. exc_info
  90. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
  91. reraise(type(exception), exception, tb=exc_tb, cause=cause)
  92. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
  93. context)
  94. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
  95. cursor.execute(statement, parameters)
  96. IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: user_score.user_id, user_score.game_id [SQL: u'INSERT INTO user_score (user_id, game_id, score, player_state, ready_for_round) VALUES (?, ?, ?, ?, ?)'] [parameters: (2, 8, 0, 'active', 0)]
  97. wsgi exiting
  98. 2017-01-22 18:19:27,961 DEBUG [application.py:456] Received event 'join_game'
  99. 2017-01-22 18:19:27,965 INFO [application.py:220] User g16423391690190087836 is joining game 8
  100. 2017-01-22 18:19:27,966 INFO [models.py:142] Adding user 'g16423391690190087836' to game 8
  101. 2017-01-22 18:19:27,971 ERROR [application.py:448] Error from client 6f0e898c33804397b4d790b7cefb3f35
  102. Traceback (most recent call last):
  103. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/flask_socketio/__init__.py", line 588, in _handle_event
  104. ret = handler(*args)
  105. File "application.py", line 223, in on_join_game
  106. db.session.commit()
  107. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 157, in do
  108. return getattr(self.registry(), name)(*args, **kwargs)
  109. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 801, in commit
  110. self.transaction.commit()
  111. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 392, in commit
  112. self._prepare_impl()
  113. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 372, in _prepare_impl
  114. self.session.flush()
  115. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2019, in flush
  116. self._flush(objects)
  117. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2137, in _flush
  118. transaction.rollback(_capture_exception=True)
  119. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
  120. compat.reraise(exc_type, exc_value, exc_tb)
  121. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2101, in _flush
  122. flush_context.execute()
  123. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 373, in execute
  124. rec.execute(self)
  125. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 532, in execute
  126. uow
  127. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 174, in save_obj
  128. mapper, table, insert)
  129. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 800, in _emit_insert_statements
  130. execute(statement, params)
  131. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
  132. return meth(self, multiparams, params)
  133. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
  134. return connection._execute_clauseelement(self, multiparams, params)
  135. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
  136. compiled_sql, distilled_params
  137. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
  138. context)
  139. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
  140. exc_info
  141. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
  142. reraise(type(exception), exception, tb=exc_tb, cause=cause)
  143. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
  144. context)
  145. File "/Users/CWins/.virtualenvs/pokergame/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
  146. cursor.execute(statement, parameters)
  147. IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: user_score.user_id, user_score.game_id [SQL: u'INSERT INTO user_score (user_id, game_id, score, player_state, ready_for_round) VALUES (?, ?, ?, ?, ?)'] [parameters: (1, 8, 0, 'active', 0)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement