lib/semantic_logger/base.rb in semantic_logger-1.0.0 vs lib/semantic_logger/base.rb in semantic_logger-1.0.1

- old
+ new

@@ -106,10 +106,10 @@ raise "Mandatory block missing" unless block_given? if @level_index <= #{index} log_exception = params.nil? ? :partial : (params[:log_exception] || :partial) min_duration = params.nil? ? 0.0 : (params[:min_duration] || 0.0) payload = params.nil? ? nil : params[:payload] - exception = params[:exception] + exception = params.nil? ? nil : params[:exception] start = Time.now begin yield rescue Exception => exc exception = exc