From 36c16aa8c780e3ff9e2e08b7c98891fab59692c7 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 15 Sep 2022 21:59:03 +0200 Subject: log bad commands --- planetwars-matchrunner/src/match_log.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'planetwars-matchrunner/src/match_log.rs') diff --git a/planetwars-matchrunner/src/match_log.rs b/planetwars-matchrunner/src/match_log.rs index 30751fd..087f2a9 100644 --- a/planetwars-matchrunner/src/match_log.rs +++ b/planetwars-matchrunner/src/match_log.rs @@ -13,6 +13,12 @@ pub enum MatchLogMessage { GameState(State), #[serde(rename = "stderr")] StdErr(StdErrMessage), + #[serde(rename = "bad_command")] + BadCommand { + player_id: u32, + command: String, + error: String, + }, } #[derive(Serialize, Deserialize, Debug)] -- cgit v1.2.3