Skip to content

Commit cecdf7c

Browse files
authored
Merge pull request #161 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 8181d5b + e110e63 commit cecdf7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function Test-CIPPAuditLogRules {
162162
$HasLocationData = $true
163163
}
164164
}
165-
$Data.AuditRecord = $RootProperties
165+
$Data.AuditRecord = [string]($RootProperties | ConvertTo-Json -Compress)
166166
$Data | Select-Object *,
167167
@{n = 'HasLocationData'; exp = { $HasLocationData } } -ExcludeProperty ExtendedProperties, DeviceProperties, parameters
168168
} catch {
@@ -258,7 +258,8 @@ function Test-CIPPAuditLogRules {
258258
try {
259259
Invoke-CippWebhookProcessing @Webhook
260260
} catch {
261-
Write-Information "Error sending final step of auditlog processing: $($_.Exception.Message)"
261+
Write-Warning "Error sending final step of auditlog processing: $($_.Exception.Message)"
262+
Write-Information $_.InvocationInfo.PositionMessage
262263
}
263264
}
264265
}

0 commit comments

Comments
 (0)