Add extra logging to githost.log when rebasing

This commit is contained in:
Sean McGivern 2018-06-27 10:47:30 +01:00
parent 87f7597a4f
commit 1860ef7dd4
2 changed files with 13 additions and 0 deletions

View file

@ -18,10 +18,18 @@ module MergeRequests
return false
end
log_prefix = "#{self.class.name} info (#{merge_request.to_reference(full: true)}):"
Gitlab::GitLogger.info("#{log_prefix} rebase started")
rebase_sha = repository.rebase(current_user, merge_request)
Gitlab::GitLogger.info("#{log_prefix} rebased to #{rebase_sha}")
merge_request.update_attributes(rebase_commit_sha: rebase_sha)
Gitlab::GitLogger.info("#{log_prefix} rebase SHA saved: #{rebase_sha}")
true
rescue => e
log_error(REBASE_ERROR, save_message_on_model: true)

View file

@ -0,0 +1,5 @@
---
title: Add more detailed logging to githost.log when rebasing
merge_request:
author:
type: other