Skip to content

Commit b93ac04

Browse files
lots of logging
1 parent 86e1e1d commit b93ac04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogOrchestrator.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ function Start-AuditLogOrchestrator {
3434
$WebhookCache = Get-CIPPAzDataTableEntity @WebhookCacheTable
3535
$TenantGroups = $WebhookCache | Group-Object -Property PartitionKey
3636

37-
if ($TenantGroups.Count -gt 0) {
37+
if ($TenantGroups) {
3838
Write-Information "Processing webhook cache for $($TenantGroups.Count) tenants"
39-
Write-Warning "AuditLogJobs are: $($TenantGroups.Count) tenants. Tenants: $($tenantgroups.name | ConvertTo-Json) "
39+
Write-Warning "AuditLogJobs are: $($TenantGroups.Count) tenants. Tenants: $($TenantGroups.name | ConvertTo-Json -Compress) "
40+
Write-Warning "Here are the groups: $($TenantGroups | ConvertTo-Json -Compress)"
4041
$ProcessQueue = New-CippQueueEntry -Name 'Audit Logs Process' -Reference 'AuditLogsProcess' -TotalTasks ($TenantGroups | Measure-Object -Property Count -Sum).Sum
4142
$ProcessBatch = foreach ($TenantGroup in $TenantGroups) {
4243
$TenantFilter = $TenantGroup.Name

0 commit comments

Comments
 (0)