Skip to content

Commit fd635b6

Browse files
committed
cleanup logging
1 parent da70c01 commit fd635b6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-CIPPGraphSubscriptionRenewalTimer.ps1

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ function Start-CIPPGraphSubscriptionRenewalTimer {
77
param()
88

99
if ($PSCmdlet.ShouldProcess('Start-CIPPGraphSubscriptionRenewalTimer', 'Starting Graph Subscription Renewal Timer')) {
10-
try {
11-
Write-LogMessage -API 'Scheduler_RenewGraphSubscriptions' -tenant 'none' -message 'Starting Graph Subscription Renewal' -sev Info
12-
Invoke-CippGraphWebhookRenewal
13-
} catch {
14-
Write-LogMessage -API 'Scheduler_RenewGraphSubscriptions' -tenant 'none' -message 'Failed to renew graph subscriptions' -sev Info
15-
}
10+
Invoke-CippGraphWebhookRenewal
1611
}
1712
}

Modules/CIPPCore/Public/Webhooks/Invoke-CIPPGraphWebhookRenewal.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function Invoke-CippGraphWebhookRenewal {
1212
}
1313

1414
if (($WebhookData | Measure-Object).Count -gt 0) {
15+
Write-LogMessage -API 'Scheduler_RenewGraphSubscriptions' -tenant 'none' -message 'Starting Graph Subscription Renewal' -sev Info
1516
foreach ($UpdateSub in $WebhookData) {
1617
try {
1718
$TenantFilter = $UpdateSub.PartitionKey

0 commit comments

Comments
 (0)