lib/semantic_logger/appender/syslog.rb in semantic_logger-3.1.0 vs lib/semantic_logger/appender/syslog.rb in semantic_logger-3.2.0

- old
+ new

@@ -209,11 +209,10 @@ end end # Write the log using the specified protocol and server. def log(log) - # Ensure minimum log level is met, and check filter - return false if (level_index > (log.level_index || 0)) || !include_message?(log) + return false unless should_log?(log) case @protocol when :syslog # Since the Ruby Syslog API supports sprintf format strings, double up all existing '%' message = formatter.call(log, self).gsub '%', '%%'