sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit cc75e31f8aa95b8dfbf1251197513791efe8a856
parent aa374765c6dc58b54c2d2d928bcf6702ea8bbccc
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Mon, 26 Aug 2013 21:24:42 +0200

Merge branch 'flush-logfile-when-debug' into fordevelop

Diffstat:
M lib/sup/logger.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/sup/logger.rb b/lib/sup/logger.rb
@@ -60,7 +60,10 @@ private
   ## actually distribute the message
   def send_message m
     @mutex.synchronize do
-      @sinks.each { |sink| sink << m }
+      @sinks.each do |sink|
+        sink << m
+        sink.flush if sink.respond_to?(:flush) and level == "debug"
+      end
       @buf << m
     end
   end