mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
parent
7b5d9e1eac
commit
30717f46af
@ -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()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user