refactor: 迁出日志宏,移除直接依赖

This commit is contained in:
爱特每羊队
2026-06-26 18:53:48 +08:00
parent 8394c5d632
commit e730d0fd2d
24 changed files with 214 additions and 280 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ pub enum Level {
}
impl Level {
pub fn as_tracing_level(self) -> tracing::Level {
pub const fn as_tracing_level(self) -> tracing::Level {
match self {
Level::Off | Level::Error => tracing::Level::ERROR,
Level::Warn => tracing::Level::WARN,