Commit 1860ef7d authored by Sean McGivern's avatar Sean McGivern

Add extra logging to githost.log when rebasing

parent 87f7597a
...@@ -18,10 +18,18 @@ module MergeRequests ...@@ -18,10 +18,18 @@ module MergeRequests
return false return false
end 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) 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) merge_request.update_attributes(rebase_commit_sha: rebase_sha)
Gitlab::GitLogger.info("#{log_prefix} rebase SHA saved: #{rebase_sha}")
true true
rescue => e rescue => e
log_error(REBASE_ERROR, save_message_on_model: true) log_error(REBASE_ERROR, save_message_on_model: true)
......
---
title: Add more detailed logging to githost.log when rebasing
merge_request:
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment