fixes
This commit is contained in:
parent
0aeb59d65c
commit
1110fa7c10
@ -8,11 +8,9 @@ module Capybara
|
|||||||
end
|
end
|
||||||
|
|
||||||
def logger(level = nil)
|
def logger(level = nil)
|
||||||
return @logger if @logger
|
logger = Logger.new(logger_target)
|
||||||
|
logger.level = level || default_log_level
|
||||||
@logger = Logger.new(logger_target)
|
logger
|
||||||
@logger.level = level || default_log_level
|
|
||||||
@logger
|
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_writer :backtrace_clean_patterns, :default_log_level, :rack_log_level, :filter_request_starts
|
attr_writer :backtrace_clean_patterns, :default_log_level, :rack_log_level, :filter_request_starts
|
||||||
@ -62,7 +60,7 @@ module Capybara
|
|||||||
lines = Capybara::RailsLogInspection.logger_target.read.lines
|
lines = Capybara::RailsLogInspection.logger_target.read.lines
|
||||||
|
|
||||||
Capybara::RailsLogInspection.clean_rack_output(lines).each do |line|
|
Capybara::RailsLogInspection.clean_rack_output(lines).each do |line|
|
||||||
output_line(line, target)
|
Capybara::RailsLogInspection.output_line(line, target)
|
||||||
end
|
end
|
||||||
|
|
||||||
reset_logs
|
reset_logs
|
||||||
|
Loading…
Reference in New Issue
Block a user