Skip to content

Commit

Permalink
[rb]: Standardise driver logging output (#9850)
Browse files Browse the repository at this point in the history
Ensure all log formats (Including browser ones), are in a consistent format
  • Loading branch information
luke-hill authored Sep 27, 2021
1 parent 746f227 commit 016eded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/common/log_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ def initialize(level, timestamp, message)

def as_json(*)
{
'level' => level,
'timestamp' => timestamp,
'level' => level,
'message' => message
}
end

def to_s
"#{level} #{time}: #{message}"
"#{time} #{level}: #{message}"
end

def time
Expand Down

0 comments on commit 016eded

Please sign in to comment.