Skip to content

Commit

Permalink
Fixed a broken JSON in log output (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
willnet authored Jun 29, 2024
1 parent 443b268 commit 639fa52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ferrum/client/web_socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def on_message(event)
output = event.data
if SKIP_LOGGING_SCREENSHOTS && @screenshot_commands[data["id"]]
@screenshot_commands.delete(data["id"])
output.sub!(/{"data":"(.*)"}/, %("Set FERRUM_LOGGING_SCREENSHOTS=true to see screenshots in Base64"))
output.sub!(/{"data":"[^"]*"}/, %("Set FERRUM_LOGGING_SCREENSHOTS=true to see screenshots in Base64"))
end

@logger&.puts(" ◀ #{Utils::ElapsedTime.elapsed_time} #{output}\n")
Expand Down

0 comments on commit 639fa52

Please sign in to comment.