From 89323b688cfad61939e836e8e3786b52beca36c0 Mon Sep 17 00:00:00 2001 From: Vemund Gaukstad Date: Tue, 10 Oct 2023 14:26:26 +0200 Subject: [PATCH] Update logging in ExpressionValidator (#319) --- .../Features/Validation/ExpressionValidator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Altinn.App.Core/Features/Validation/ExpressionValidator.cs b/src/Altinn.App.Core/Features/Validation/ExpressionValidator.cs index 28fbeb047..96329e6ea 100644 --- a/src/Altinn.App.Core/Features/Validation/ExpressionValidator.cs +++ b/src/Altinn.App.Core/Features/Validation/ExpressionValidator.cs @@ -67,9 +67,9 @@ public static IEnumerable Validate(JsonElement validationConfig validationIssues.Add(validationIssue); } } - catch + catch(Exception e) { - logger.LogError($"Error while evaluating expression validation for {resolvedField}"); + logger.LogError(e, "Error while evaluating expression validation for {resolvedField}", resolvedField); throw; } }