Skip to content

Include console type and stack trace in logger output#605

Open
kanutocd wants to merge 1 commit into
rubycdp:mainfrom
kanutocd:fix/console-api-log-context
Open

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

Conversation

@kanutocd

Copy link
Copy Markdown

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.
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

1 participant