Skip to content

Commit

Permalink
Prioritize logger over CUPRITE_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Feb 11, 2019
1 parent 1e953bf commit e815650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/cuprite/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def initialize(options = nil)
@js_errors = @options.fetch(:js_errors, false)
@slowmo = @options[:slowmo]

if ENV["CUPRITE_DEBUG"]
if ENV["CUPRITE_DEBUG"] && !@logger
STDOUT.sync = true
@logger = STDOUT
@options[:logger] = @logger
Expand Down

0 comments on commit e815650

Please sign in to comment.