lib/rrj/tools/gem/config.rb in ruby_rabbitmq_janus-2.1.0.pre.132 vs lib/rrj/tools/gem/config.rb in ruby_rabbitmq_janus-2.1.0.pre.135

- old
+ new

@@ -75,10 +75,16 @@ raise Errors::Tools::Config::QueueAdminTo end # @return [Symbol] read configuration for log level used in this gem def log_level - @options['gem']['log']['level'].upcase.to_sym + @options['gem']['log']['level'].upcase.to_sym || :INFO + rescue + raise Errors::Tools::Config::LevelNotDefine + end + + def log_level_rabbit + @options['rabbit']['level'].upcase.to_sym || :INFO rescue raise Errors::Tools::Config::LevelNotDefine end # @return [Integer]