lib/semantic_logger/appender/logger.rb in semantic_logger-0.3.1 vs lib/semantic_logger/appender/logger.rb in semantic_logger-0.3.2
- old
+ new
@@ -67,10 +67,10 @@
end
# Flush all pending logs to disk.
# Waits for all sent documents to be writted to disk
def flush
- @logger.flush
+ @logger.flush if @logger.respond_to?(:flush)
end
end
end
end