Skip to content

Include console type and stack trace in logger output - #605

Merged
route merged 1 commit into
rubycdp:mainfrom
kanutocd:fix/console-api-log-context
Jul 30, 2026
Merged

Include console type and stack trace in logger output#605
route merged 1 commit into
rubycdp:mainfrom
kanutocd:fix/console-api-log-context

Conversation

@kanutocd

Copy link
Copy Markdown
Contributor

Summary

  • Include the console API type in logger output for Runtime.consoleAPICalled
  • Include stack trace call frames when Chrome provides them
  • Preserve existing logger behavior that includes console argument values

Closes #419.

Verification

  • bundle exec rspec spec/browser_spec.rb:44
  • bundle exec rubocop lib/ferrum/page.rb spec/browser_spec.rb
  • bundle exec rspec spec/browser_spec.rb

- Log Runtime.consoleAPICalled entries with their console API type and stack frames so logger output preserves useful context beyond argument values.
@route
route merged commit dd292cf into rubycdp:main Jul 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include type and stackTrace in logging for console API

2 participants