##// END OF EJS Templates
Capture scm CLI stderr to log/scm.stderr.log when running in dev environment...
Jean-Philippe Lang -
r2126:a37f4b9cf699
parent child
Show More
@@ -171,6 +171,10 module Redmine
171 171
172 172 def self.shellout(cmd, &block)
173 173 logger.debug "Shelling out: #{cmd}" if logger && logger.debug?
174 if Rails.env == 'development'
175 # Capture stderr when running in dev environment
176 cmd = "#{cmd} 2>>#{RAILS_ROOT}/log/scm.stderr.log"
177 end
174 178 begin
175 179 IO.popen(cmd, "r+") do |io|
176 180 io.close_write
General Comments 0
You need to be logged in to leave comments. Login now