Skip to content

Commit

Permalink
log winner field
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Adamson committed Aug 7, 2023
1 parent 50162f3 commit 419a969
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onitamaserver/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,14 @@ pub async fn event_receive(
} => {
slog::info!(
server_data.logger,
"Game ended against {} winner was {}", &against, winner;
"Game ended against {} winner was {}", &against, &winner;
"opponent" => &against,
"event" => "ended",
"uid" => meta.uid,
"training" => training,
"build" => meta.build,
"user_agent" => get_useragent(&req),
"winner" => &winner,
"ip" => get_ip(&req),
);
}
Expand Down

0 comments on commit 419a969

Please sign in to comment.