Project

General

Profile

Defect #4448 ยป strip_scm_credentials_from_logs.patch

Holger Just, 2009-12-18 18:11

View differences:

lib/redmine/scm/adapters/abstract_adapter.rb (Arbeitskopie)
182 182
        end
183 183
        
184 184
        def self.shellout(cmd, &block)
185
          logger.debug "Shelling out: #{cmd}" if logger && logger.debug?
185
          logger.debug "Shelling out: #{strip_credential(cmd)}" if logger && logger.debug?
186 186
          if Rails.env == 'development'
187 187
            # Capture stderr when running in dev environment
188 188
            cmd = "#{cmd} 2>>#{RAILS_ROOT}/log/scm.stderr.log"
    (1-1/1)