From b49716e28a42c5054c9664233269f657b2c7e708 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Mon, 19 Dec 2022 07:12:18 -0500 Subject: [PATCH] FIXES #2682 --- CHANGELOG.md | 2 ++ Modules/Microsoft365DSC/Modules/M365DSCLogEngine.psm1 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d70c3a669a..2fb7d7a5d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ FIXES [#2671](https://github.com/microsoft/Microsoft365DSC/issues/2671) * Updated Get-M365DSCCompiledPermissionList to output all permissions consistently. It can now also be used as input for Update-M365DscAzureAdApplication. + * Fixes issue where the wrong parameter is being passed to the Erro log function. + FIXES [#2682](https://github.com/microsoft/Microsoft365DSC/issues/2682) * DEPENDENCIES * Updated Microsoft.Graph.* to version 1.19.0; diff --git a/Modules/Microsoft365DSC/Modules/M365DSCLogEngine.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCLogEngine.psm1 index 9cc58ef438..e61021c1dd 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCLogEngine.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCLogEngine.psm1 @@ -254,7 +254,7 @@ function Add-M365DSCEvent # Check call stack to prevent indefinite loop between New-M365DSCLogEntry and this function if ((Get-PSCallStack)[1].FunctionName -ne 'New-M365DSCLogEntry') { - New-M365DSCLogEntry -Error $_ -Message $MessageText ` + New-M365DSCLogEntry -Exception $_ -Message $MessageText ` -Source '[M365DSCLogEngine]' ` -TenantId $TenantId }