Updated logging messages

This commit is contained in:
michael-bailey 2024-09-06 17:47:32 +01:00
parent 787dfcd022
commit 7a99cd1019
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ impl ClientWriter for JSONClientWriter {
username: details.name,
};
println!(
"[ProtobufClientWriter:{}] sending client connected message",
"[JSONClientReader:{}] sending client connected message",
self.addr
);
write_message(&mut self.writer, message).await;
@ -70,7 +70,7 @@ impl ClientWriter for JSONClientWriter {
async fn send_client_left(&mut self, uuid: Uuid) {
let message = ClientStreamOut::ClientRemoved { id: uuid };
println!(
"[ProtobufClientWriter:{}] sending client connected message",
"[JSONClientReader:{}] sending client connected message",
self.addr
);
write_message(&mut self.writer, message).await;

View File

@ -74,7 +74,7 @@ impl Server {
ConnectionType::JsonConnection(stream, addr),
)) => {
let conn = Box::new(JSONNetworkConnection::new(stream, addr));
println!("[Server] New protobuf connection");
println!("[Server] New json connection");
self.handle_protobuf_connection(conn).await;
}
Some(ServerMessages::SendGlobalMessages(uuid)) => {