Skip to content

Commit 0766403

Browse files
committed
cleanup logging
1 parent 0e9a48f commit 0766403

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Modules/CIPPCore/Public/GraphRequests/Get-GraphRequestList.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ function Get-GraphRequestList {
8686
$SingleTenantThreshold = 8000
8787
Write-Information "Tenant: $TenantFilter"
8888
$TableName = ('cache{0}' -f ($Endpoint -replace '[^A-Za-z0-9]'))[0..62] -join ''
89-
Write-Information "Table: $TableName"
9089
$Endpoint = $Endpoint -replace '^/', ''
9190
$DisplayName = ($Endpoint -split '/')[0]
9291

@@ -123,7 +122,6 @@ function Get-GraphRequestList {
123122
}
124123
$GraphQuery.Query = $ParamCollection.ToString()
125124
$PartitionKey = Get-StringHash -String (@($Endpoint, $ParamCollection.ToString(), 'v2') -join '-')
126-
Write-Information "PK: $PartitionKey"
127125

128126
# Perform $count check before caching
129127
$Count = 0
@@ -196,7 +194,7 @@ function Get-GraphRequestList {
196194
}
197195
$Rows = Get-CIPPAzDataTableEntity @Table -Filter $Filter
198196
$Type = 'Cache'
199-
Write-Information "Cached: $(($Rows | Measure-Object).Count) rows (Type: $($Type))"
197+
Write-Information "Table: $TableName | PK: $PartitionKey | Cached: $(($Rows | Measure-Object).Count) rows (Type: $($Type))"
200198
$QueueReference = '{0}-{1}' -f $TenantFilter, $PartitionKey
201199
$RunningQueue = Invoke-ListCippQueue -Reference $QueueReference | Where-Object { $_.Status -notmatch 'Completed' -and $_.Status -notmatch 'Failed' }
202200
}

0 commit comments

Comments
 (0)