Do not echo debug messages when redirecting to a log file

Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
Thomas Arendsen Hein 2012-05-31 21:21:35 -04:00 committed by James McCoy
parent 70cfdc99bd
commit ff9c9a8366

View File

@ -1260,7 +1260,7 @@ function s:GPGDebug(level, text)
if exists("g:GPGDebugLevel") && g:GPGDebugLevel >= a:level
if exists("g:GPGDebugLog")
execute "redir >> " . g:GPGDebugLog
echom "GnuPG: " . a:text
silent echom "GnuPG: " . a:text
redir END
else
echom "GnuPG: " . a:text