允许使用通配符允许全部日志
This commit is contained in:
@@ -32,6 +32,9 @@ macro_rules! make_write {
|
||||
fn make_filter() -> FilterFn {
|
||||
FilterFn::new(|metadata| {
|
||||
let name = unsafe { MODULE_NAME };
|
||||
if name.eq("*") {
|
||||
return true;
|
||||
}
|
||||
|
||||
let target = metadata.target();
|
||||
target.starts_with(name)
|
||||
|
||||
Reference in New Issue
Block a user