Improve error logging on receive commits
Make sure that in all cases where a push is rejected with "REJECTED_OTHER_REASON (internal server error)" or "REJECTED_OTHER_REASON (internal error)" a log entry is written and that this log entry contains the project name. Change-Id: Ib04d1c4550f1511b1c83462147b9a2d7d8d7f51d Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -163,7 +163,9 @@ public class AsyncReceiveCommits implements PreReceiveHook {
|
||||
executor.submit(scopePropagator.wrap(new Worker(commands))),
|
||||
timeoutMillis, TimeUnit.MILLISECONDS);
|
||||
} catch (ExecutionException e) {
|
||||
log.warn("Error in ReceiveCommits", e);
|
||||
log.warn(String.format(
|
||||
"Error in ReceiveCommits while processing changes for project %s",
|
||||
rc.getProject().getName()), e);
|
||||
rc.addError("internal error while processing changes " + e.getMessage());
|
||||
// ReceiveCommits has tried its best to catch errors, so anything at this
|
||||
// point is very bad.
|
||||
|
Reference in New Issue
Block a user