lib/hanami/components/components.rb in hanami-1.2.0 vs lib/hanami/components/components.rb in hanami-1.3.0.beta1
- old
+ new
@@ -27,10 +27,10 @@
require 'hanami/logger'
end
resolve do |configuration|
if configuration.logger.is_a?(Array)
- if configuration.logger.first.is_a?(::Logger)
+ if logger_interface?(configuration.logger.first)
configuration.logger.first
else
Hanami::Logger.new(Hanami.environment.project_name, *configuration.logger)
end
end