From 30717f46af019da86981b6b7ca366c7bcd80cddb Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Sun, 4 Feb 2024 18:42:18 +0200 Subject: [PATCH] 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. --- voxygen/i18n-helpers/src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/voxygen/i18n-helpers/src/lib.rs b/voxygen/i18n-helpers/src/lib.rs index e583c10b7c..bed31666e6 100644 --- a/voxygen/i18n-helpers/src/lib.rs +++ b/voxygen/i18n-helpers/src/lib.rs @@ -80,15 +80,9 @@ pub fn localize_chat_message( match pi.character.as_ref().and_then(|c| c.gender) { Some(Gender::Feminine) => "she".to_owned(), Some(Gender::Masculine) => "he".to_owned(), - None => { - tracing::error!("We tried to get the gender, but failed"); - - "??".to_owned() - }, + None => "??".to_owned(), } } else { - tracing::error!("We tried to get the gender of the player we can't find"); - "??".to_owned() } };