Skip to content

Commit 5f8eab3

Browse files
princejosephclaude
andcommitted
fix: use WARNING log level for chrome driver to capture console.warn
'SEVERE' only captured console.error, missing console.warn calls. The 'did you mean to say Foo()' message uses console.warn (WARNING level). 'WARNING' captures WARNING + SEVERE but excludes INFO (console.log), so initialization spam that broke the 'no spurious warnings' test is still filtered out. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 463661e commit 5f8eab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ruby/hyper-spec/lib/hyper-spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def self.on_server?
252252
options.add_argument('--no-sandbox')
253253
options.add_argument('--disable-dev-shm-usage')
254254
options.add_argument('--disable-gpu')
255-
options.add_option('goog:loggingPrefs', { browser: 'SEVERE' })
255+
options.add_option('goog:loggingPrefs', { browser: 'WARNING' })
256256
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
257257
end
258258

0 commit comments

Comments
 (0)