lib/itsf/services/v2/service/base.rb in itsf_services-0.2.1 vs lib/itsf/services/v2/service/base.rb in itsf_services-0.3.0
- old
+ new
@@ -72,10 +72,10 @@
def say(message, options = {})
options.reverse_merge!(indent: 0, level: :info)
indent = options.delete(:indent)
level = options.delete(:level)
formatted_message = "[#{self.class.name}]: #{' ' * indent}#{message}"
- puts formatted_message
+ puts formatted_message unless Itsf::Services.silenced_levels[Rails.env].include?(level)
@_messages << Services::V2::Message::Base.new(service_class: self.class, message: message, level: level, indent: indent)
true
end
def info(message, options = {})