Browse Source

try to catch game_log

Maxim Sokhatsky 11 years ago
parent
commit
7f5f19b416
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/server/src/sup/game_log.erl

+ 1 - 1
apps/server/src/sup/game_log.erl

@@ -55,7 +55,7 @@ handle_cast({protocol_event, UserId,
            game_event = Event},
 
     gas:info(?MODULE, "Event Log: ~p", [EventLogEntry]),
-    kvs:add(EventLogEntry),
+    try kvs:add(EventLogEntry) catch E:R -> gas:info(?MODULE,"kvs:add ERROR ~n ~p",[{E,R}]) end,
     update_container_stats(UserId, EventLogEntry,#protocol_event.event,GameState),
 
     {noreply, State};