Skip to content

Commit d7093a1

Browse files
committed
refactor: add changeId in log when abort execution
1 parent d18016a commit d7093a1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

core/flamingock-core/src/main/java/io/flamingock/internal/core/operation/AbstractPipelineTraverseOperation.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package io.flamingock.internal.core.operation;
1717

1818
import io.flamingock.internal.common.core.error.FlamingockException;
19+
import io.flamingock.internal.common.core.recovery.ManualInterventionRequiredException;
1920
import io.flamingock.internal.common.core.error.PendingChangesException;
2021
import io.flamingock.internal.common.core.response.data.ErrorInfo;
2122
import io.flamingock.internal.common.core.response.data.ExecuteResponseData;
@@ -207,7 +208,12 @@ private FlamingockException processAndGetFlamingockException(Throwable exception
207208
} else {
208209
flamingockException = new FlamingockException(exception);
209210
}
210-
logger.debug("Error executing the process. ABORTED OPERATION", exception);
211+
if (flamingockException instanceof ManualInterventionRequiredException) {
212+
ManualInterventionRequiredException miException = (ManualInterventionRequiredException) flamingockException;
213+
logger.error("ABORTED OPERATION - Manual intervention required for changes: [{}]", miException.getConflictingSummary());
214+
} else {
215+
logger.debug("Error executing the process. ABORTED OPERATION", exception);
216+
}
211217
eventPublisher.publish(new StageFailedEvent(flamingockException));
212218
eventPublisher.publish(new PipelineFailedEvent(flamingockException));
213219
return flamingockException;

0 commit comments

Comments
 (0)