Skip to content

Commit

Permalink
[rust] Change field message to error
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Feb 8, 2024
1 parent 7afb54e commit 33772d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct JsonOutput {
pub struct MinimalJson {
pub driver_path: String,
pub browser_path: String,
pub message: String,
pub error: String,
}

impl Logger {
Expand Down Expand Up @@ -206,7 +206,7 @@ impl Logger {
self.minimal_json.borrow_mut().browser_path =
self.clean_browser_path(&message);
} else {
self.minimal_json.borrow_mut().message = message.clone();
self.minimal_json.borrow_mut().error = message.clone();
}
}
log::log!(level, "{}", message);
Expand Down

0 comments on commit 33772d1

Please sign in to comment.