lib/open_project/gitolite/git_hosting.rb
def error(*progname, &block)
      if block_given?
      Rails.logger.error(*progname) { "#{ERROR_PREFIX}#{yield}".gsub(/\n/,"\n#{ERROR_PREFIX}") }
      else
      Rails.logger.error "#{ERROR_PREFIX}#{progname}".gsub(/\n/,"\n#{ERROR_PREFIX}")
      end
    end
# For errors, add our prefix to all messages
For errors, add our prefix to all messages
For errors add our prefix to all messages
def error(*progname, &block)
      if block_given?
      Rails.logger.error(*progname) { "#{ERROR_PREFIX}#{yield}".gsub(/\n/,"\n#{ERROR_PREFIX}") }
      else
      Rails.logger.error "#{ERROR_PREFIX}#{progname}".gsub(/\n/,"\n#{ERROR_PREFIX}")
      end
    end
def error ( * progname , & block ) if block_given? Rails . logger . error ( * progname ) { "#{ERROR_PREFIX}#{yield}" . gsub ( / \n / , "\n#{ERROR_PREFIX}" ) } else Rails . logger . error "#{ERROR_PREFIX}#{progname}" . gsub ( / \n / , "\n#{ERROR_PREFIX}" ) end end
For errors, add our prefix to all messages
For errors add our prefix to all messages
progname
block