refactor: 迁出日志宏,移除直接依赖
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user