Skip to content

Commit

Permalink
Add some log to wesnothd
Browse files Browse the repository at this point in the history
mainly for the travis mp tests.
  • Loading branch information
gfgtdf committed Mar 3, 2016
1 parent 699432f commit 215b7b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/game.cpp
Expand Up @@ -895,6 +895,7 @@ bool game::process_turn(simple_wml::document& data, const player_map::const_iter
const simple_wml::node::child_list& commands = turn->children("command");
simple_wml::node::child_list::const_iterator command;
for (command = commands.begin(); command != commands.end(); ++command) {
DBG_GAME << "game " << id_ << " recieved [" << (**command).first_child() << "] from player '" << user->second.name() << "'(" << user->first << ") during turn " << end_turn_ << "\n";
if (!is_legal_command(**command, user)) {
LOG_GAME << "ILLEGAL COMMAND in game: " << id_ << " ((("
<< simple_wml::node_to_string(**command) << ")))\n";
Expand Down

0 comments on commit 215b7b3

Please sign in to comment.