修正允许任意Warn以及Error的实现
This commit is contained in:
@@ -39,7 +39,8 @@ fn make_filter() -> FilterFn {
|
|||||||
|| target.starts_with("proxy_pool")
|
|| target.starts_with("proxy_pool")
|
||||||
|| target.starts_with("rpc_api")
|
|| target.starts_with("rpc_api")
|
||||||
|| target.starts_with("utils")
|
|| target.starts_with("utils")
|
||||||
|| metadata.level() <= &Level::WARN // WARN 和 ERROR 永远允许
|
|| *metadata.level() == Level::WARN
|
||||||
|
|| *metadata.level() == Level::ERROR // WARN 和 ERROR 永远允许
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user