File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ pub struct JsonOutput {
75
75
pub struct MinimalJson {
76
76
pub driver_path : String ,
77
77
pub browser_path : String ,
78
+ pub message : String ,
78
79
}
79
80
80
81
impl Logger {
@@ -211,13 +212,16 @@ impl Logger {
211
212
}
212
213
}
213
214
_ => {
214
- if self . output == OutputType :: Mixed && level == Level :: Info {
215
+ if self . output == OutputType :: Mixed && level == Level :: Info || level <= Level :: Error
216
+ {
215
217
if message. starts_with ( DRIVER_PATH ) {
216
218
self . minimal_json . borrow_mut ( ) . driver_path =
217
219
self . clean_driver_path ( & message) ;
218
220
} else if message. starts_with ( BROWSER_PATH ) {
219
221
self . minimal_json . borrow_mut ( ) . browser_path =
220
222
self . clean_browser_path ( & message) ;
223
+ } else {
224
+ self . minimal_json . borrow_mut ( ) . message = message. clone ( ) ;
221
225
}
222
226
}
223
227
log:: log!( level, "{}" , message) ;
You can’t perform that action at this time.
0 commit comments