@@ -45,8 +45,8 @@ impl Log for SimpleLogger {
45
45
None => "<unknown>" ,
46
46
} ;
47
47
48
- // if it's from a dependency only log debug and above, else everything
49
- if !record . file ( ) . unwrap_or ( "" ) . contains ( ".cargo" ) || record. level ( ) <= Level :: Debug {
48
+ // just log debug and above, as otherwise logs are far, far too verbose
49
+ if record. level ( ) <= Level :: Debug {
50
50
let level = match record. level ( ) {
51
51
Level :: Error => "ERROR" . red ( ) ,
52
52
Level :: Warn => "WARN" . yellow ( ) ,
@@ -62,25 +62,17 @@ impl Log for SimpleLogger {
62
62
"]" . truecolor( 100 , 100 , 100 ) ,
63
63
record. args( )
64
64
) ;
65
- }
66
-
67
- let level = match record. level ( ) {
68
- Level :: Error => "ERROR" ,
69
- Level :: Warn => "WARN" ,
70
- Level :: Info => "INFO" ,
71
- Level :: Debug => "DEBUG" ,
72
- Level :: Trace => "TRACE" ,
73
- } ;
74
65
75
- self . lock ( |file| {
76
- writeln ! (
77
- file,
78
- "[{level:<5} {file_path}:{}] {}" ,
79
- record. line( ) . unwrap_or( 0 ) ,
80
- record. args( )
81
- )
82
- } )
83
- . unwrap ( ) ;
66
+ self . lock ( |file| {
67
+ writeln ! (
68
+ file,
69
+ "[{level:<5} {file_path}:{}] {}" ,
70
+ record. line( ) . unwrap_or( 0 ) ,
71
+ record. args( )
72
+ )
73
+ } )
74
+ . unwrap ( ) ;
75
+ }
84
76
}
85
77
}
86
78
0 commit comments