]> git.notmuchmail.org Git - sup/blobdiff - lib/sup/mode.rb
rewrite logging to have multiple levels: debug, info, etc.
[sup] / lib / sup / mode.rb
index 6433492c4d50acb187c1ae426620fde6a13b36be..209ca45e44bb36333159627335bd64dd7f8b50ea 100644 (file)
@@ -92,10 +92,10 @@ EOS
       unless err.empty?
         message = err.first.read
         if message =~ /^\s*$/
-          Redwood::log "error running #{command} (but no error message)"
+          warn "error running #{command} (but no error message)"
           BufferManager.flash "Error running #{command}!"
         else
-          Redwood::log "error running #{command}: #{message}"
+          warn "error running #{command}: #{message}"
           BufferManager.flash "Error: #{message}"
         end
         return