lib/semantic_logger/concerns/compatibility.rb in semantic_logger-4.3.1 vs lib/semantic_logger/concerns/compatibility.rb in semantic_logger-4.4.0
- old
+ new
@@ -36,12 +36,12 @@
def reopen(logdev = nil)
end
# :nodoc:
def add(severity, message = nil, progname = nil, &block)
- index = SemanticLogger.send(:level_to_index, severity)
+ index = Levels.index(severity)
if level_index <= index
- level = SemanticLogger.send(:index_to_level, index)
+ level = Levels.level(index)
log_internal(level, index, message, progname, &block)
true
else
false
end