lib/semantic_logger/appenders.rb in semantic_logger-4.6.0 vs lib/semantic_logger/appenders.rb in semantic_logger-4.6.1

- old
+ new

@@ -17,22 +17,22 @@ def log(log) each do |appender| begin appender.log(log) if appender.should_log?(log) rescue Exception => exc - logger.error "Failed to log to appender: #{appender.inspect}", exc + logger.error "Failed to log to appender: #{appender.name}", exc end end end def flush each do |appender| begin logger.trace "Flushing appender: #{appender.name}" appender.flush rescue Exception => exc - logger.error "Failed to flush appender: #{appender.inspect}", exc + logger.error "Failed to flush appender: #{appender.name}", exc end end logger.trace 'All appenders flushed' end @@ -42,11 +42,11 @@ logger.trace "Closing appender: #{appender.name}" appender.flush appender.close delete(appender) rescue Exception => exc - logger.error "Failed to close appender: #{appender.inspect}", exc + logger.error "Failed to close appender: #{appender.name}", exc end end logger.trace 'All appenders closed and removed from appender list' end @@ -57,10 +57,10 @@ next unless appender.respond_to?(:reopen) logger.trace "Reopening appender: #{appender.name}" appender.reopen rescue Exception => exc - logger.error "Failed to re-open appender: #{appender.inspect}", exc + logger.error "Failed to re-open appender: #{appender.name}", exc end end logger.trace 'All appenders re-opened' end end