hide some unnecessary data from log output

This commit is contained in:
Martin Michelsen
2023-11-27 21:29:48 -08:00
parent 9e55cd228c
commit 5192b5f615
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -185,6 +185,14 @@ Client::Client(
this->reschedule_save_game_data_event();
this->reschedule_ping_and_timeout_events();
// Don't print data sent to patch clients to the logs. The patch server
// protocol is fully understood and data logs for patch clients are generally
// more annoying than helpful at this point.
if ((this->channel.version == Version::PC_PATCH) || (this->channel.version == Version::BB_PATCH)) {
this->channel.terminal_recv_color = TerminalFormat::END;
this->channel.terminal_send_color = TerminalFormat::END;
}
this->log.info("Created");
}