Remove tracing::error! to avoid log-spam

This error shouldn't be possible to trigger, unless you're playing as
spectator in which case you don't have a character, so we can't pick
right gender.
This should be fixed when we do add UI to pick the gender.
This commit is contained in:
juliancoffee 2024-02-04 18:42:18 +02:00
parent 7b5d9e1eac
commit 30717f46af

View File

@ -80,15 +80,9 @@ pub fn localize_chat_message(
match pi.character.as_ref().and_then(|c| c.gender) { match pi.character.as_ref().and_then(|c| c.gender) {
Some(Gender::Feminine) => "she".to_owned(), Some(Gender::Feminine) => "she".to_owned(),
Some(Gender::Masculine) => "he".to_owned(), Some(Gender::Masculine) => "he".to_owned(),
None => { None => "??".to_owned(),
tracing::error!("We tried to get the gender, but failed");
"??".to_owned()
},
} }
} else { } else {
tracing::error!("We tried to get the gender of the player we can't find");
"??".to_owned() "??".to_owned()
} }
}; };