Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add debugging output to server

  • Loading branch information...
commit f8a01890d119742ffc132771493489546f1c0052 1 parent 2430b49
@cbeck88 cbeck88 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/server/server.cpp
View
3  src/server/server.cpp
@@ -2286,7 +2286,8 @@ void server::process_data_lobby(const network::connection sock,
if (!joined) {
WRN_SERVER << network::ip_address(sock) << "\t" << pl->second.name()
<< "\tattempted to observe game:\t\"" << (*g)->name() << "\" ("
- << game_id << ") which doesn't allow observers.\n";
+ << game_id << ") which doesn't allow observers.\n"
+ << "(*g)->allow_observers() = " << (*g)->allow_observers() << std::endl;
send_doc(leave_game_doc, sock);
rooms_.lobby().send_server_message("Attempt to observe a game that doesn't allow observers. (You probably joined the game shortly after it filled up.)", sock);
send_doc(games_and_users_list_, sock);
Please sign in to comment.
Something went wrong with that request. Please try again.