Skip to content

Commit

Permalink
Make provisioning exception messages shorter
Browse files Browse the repository at this point in the history
This is a partial backport of
73cfafe.
  • Loading branch information
mederly committed Sep 23, 2022
1 parent 0b62023 commit 01c9e33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import com.evolveum.midpoint.util.exception.ExpressionEvaluationException;
import com.evolveum.midpoint.util.exception.ObjectNotFoundException;
import com.evolveum.midpoint.util.exception.SchemaException;
import com.evolveum.midpoint.util.logging.LoggingUtils;
import com.evolveum.midpoint.util.logging.Trace;
import com.evolveum.midpoint.util.logging.TraceManager;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
Expand Down Expand Up @@ -319,7 +320,7 @@ public static void recordFatalError(Trace logger, OperationResult opResult, Stri
if (message == null) {
message = ex.getMessage();
}
logger.error(message, ex);
LoggingUtils.logExceptionAsWarning(logger, message, ex);
opResult.recordFatalError(message, ex);
opResult.cleanupResult(ex);
}
Expand Down

0 comments on commit 01c9e33

Please sign in to comment.