Log SCM stderr when log level is set to debug only (#13541).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11680 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-03-22 07:50:28 +00:00
parent c20a13f8ee
commit d8769cb27c
1 changed files with 2 additions and 2 deletions

View File

@ -228,9 +228,9 @@ module Redmine
def self.shellout(cmd, options = {}, &block)
if logger && logger.debug?
logger.debug "Shelling out: #{strip_credential(cmd)}"
# Capture stderr in a log file
cmd = "#{cmd} 2>>#{shell_quote(stderr_log_file)}"
end
# Capture stderr in a log file
cmd = "#{cmd} 2>>#{shell_quote(stderr_log_file)}"
begin
mode = "r+"
IO.popen(cmd, mode) do |io|