From b275a646acc34f01456562dcb2e86865d816a938 Mon Sep 17 00:00:00 2001 From: snowy Date: Fri, 5 Apr 2024 09:18:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/utils/language.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteyuki/utils/language.py b/liteyuki/utils/language.py index a69116f0..c6588269 100644 --- a/liteyuki/utils/language.py +++ b/liteyuki/utils/language.py @@ -127,10 +127,10 @@ class Language: try: if self.lang_code in _language_data and item in _language_data[self.lang_code]: return _language_data[self.lang_code][item].format(*args, **kwargs) - nonebot.logger.warning(f"Language text not found: {self.lang_code}.{item}") + nonebot.logger.debug(f"Language text not found: {self.lang_code}.{item}") if self.fallback_lang_code in _language_data and item in _language_data[self.fallback_lang_code]: return _language_data[self.fallback_lang_code][item].format(*args, **kwargs) - nonebot.logger.warning(f"Language text not found in fallback language: {self.fallback_lang_code}.{item}") + nonebot.logger.debug(f"Language text not found in fallback language: {self.fallback_lang_code}.{item}") return default or item except Exception as e: nonebot.logger.error(f"Failed to get language text or format: {e}")