lib/semantic_logger/base.rb in semantic_logger-4.1.0 vs lib/semantic_logger/base.rb in semantic_logger-4.1.1

- old
+ new

@@ -324,10 +324,10 @@ if block_given? result = if silence_level = params[:silence] # In case someone accidentally sets `silence: true` instead of `silence: :error` silence_level = :error if silence_level == true - silence(silence_level) {yield(params)} + silence(silence_level) { yield(params) } else yield(params) end end rescue Exception => exc