lib/semantic_logger/log.rb in semantic_logger-4.0.0.beta1 vs lib/semantic_logger/log.rb in semantic_logger-4.0.0.beta2

- old
+ new

@@ -65,10 +65,10 @@ def assign(message: nil, payload: nil, min_duration: 0.0, exception: nil, metric: nil, metric_amount: 1, duration: nil, backtrace: nil, log_exception: :full, on_exception_level: nil) # Elastic logging: Log when :duration exceeds :min_duration # Except if there is an exception when it will always be logged if duration self.duration = duration - return false if (duration <= min_duration) && exception.nil? + return false if (duration < min_duration) && exception.nil? end self.message = message self.payload = payload