debian-mirror-gitlab/app/services/concerns/git/logger.rb
2019-12-26 22:10:19 +05:30

10 lines
321 B
Ruby

# frozen_string_literal: true
module Git
module Logger
def log_error(message, save_message_on_model: false)
Gitlab::GitLogger.error("#{self.class.name} error (#{merge_request.to_reference(full: true)}): #{message}")
merge_request.update(merge_error: message) if save_message_on_model
end
end
end