Add additional logging.
This commit is contained in:
parent
930bce2186
commit
6bbcdf9ad0
1 changed files with 4 additions and 1 deletions
|
@ -1691,10 +1691,13 @@ void server::handle_player_in_game(player_iterator p, simple_wml::document& data
|
|||
for(const auto& content : addon->children("content")) {
|
||||
unsigned long long rows_inserted = user_handler_->db_insert_game_content_info(uuid_, g.db_id(), content->attr("type").to_string(), content->attr("name").to_string(), content->attr("id").to_string(), addon->attr("id").to_string(), addon->attr("version").to_string());
|
||||
if(rows_inserted == 0) {
|
||||
WRN_SERVER << "Did not insert content row for [addon] data with uuid '" << uuid_ <<"', game ID '" << g.db_id() << "', type '" << content->attr("type").to_string() << "', and content ID '" << content->attr("id").to_string() << "'\n";
|
||||
WRN_SERVER << "Did not insert content row for [addon] data with uuid '" << uuid_ << "', game ID '" << g.db_id() << "', type '" << content->attr("type").to_string() << "', and content ID '" << content->attr("id").to_string() << "'\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(m.children("addon").size() == 0) {
|
||||
WRN_SERVER << "Game content info missing for game with uuid '" << uuid_ << "', game ID '" << g.db_id() << "', named '" << g.name() << "'\n";
|
||||
}
|
||||
|
||||
user_handler_->db_insert_game_info(uuid_, g.db_id(), server_id_, g.name(), g.is_reload(), m["observer"].to_bool(), !m["private_replay"].to_bool(), g.has_password());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue