lib/semantic_logger/appenders.rb in semantic_logger-4.4.0 vs lib/semantic_logger/appenders.rb in semantic_logger-4.5.0
- old
+ new
@@ -41,10 +41,10 @@
each do |appender|
begin
logger.trace "Closing appender: #{appender.name}"
appender.flush
appender.close
- appenders.delete(appender)
+ delete(appender)
rescue Exception => exc
logger.error "Failed to close appender: #{appender.inspect}", exc
end
end
logger.trace 'All appenders closed and removed from appender list'