]> git.notmuchmail.org Git - sup/blobdiff - lib/sup/crypto.rb
rewrite logging to have multiple levels: debug, info, etc.
[sup] / lib / sup / crypto.rb
index a3f7afcd2099214bc674340eaea445a394bd4b98..7f044b99428d0beb80bfb22fa1f4cda6bc127011 100644 (file)
@@ -18,10 +18,10 @@ class CryptoManager
     @cmd =
       case bin
       when /\S/
-        Redwood::log "crypto: detected gpg binary in #{bin}"
+        debug "crypto: detected gpg binary in #{bin}"
         "#{bin} --quiet --batch --no-verbose --logger-fd 1 --use-agent"
       else
-        Redwood::log "crypto: no gpg binary detected"
+        debug "crypto: no gpg binary detected"
         nil
       end
   end
@@ -154,9 +154,7 @@ private
 
   def run_gpg args
     cmd = "#{@cmd} #{args} 2> /dev/null"
-    #Redwood::log "crypto: running: #{cmd}"
     output = `#{cmd}`
-    #Redwood::log "crypto: output: #{output.inspect}" unless $?.success?
     output
   end
 end