diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-03-22 07:50:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-03-22 07:50:28 +0000 |
commit | d8769cb27cc55741611bc225b90c768842c97c46 (patch) | |
tree | 2a42a7135d1fe44f5bcff91c7d9115805b64e85c /lib | |
parent | c20a13f8ee1f1966c0c662ccf373da2f4aa567f4 (diff) | |
download | redmine-d8769cb27cc55741611bc225b90c768842c97c46.tar.gz redmine-d8769cb27cc55741611bc225b90c768842c97c46.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 436d83bf4..365987326 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -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| |