Skip to content

Commit d31530a

Browse files
log messages
1 parent f3c5e3d commit d31530a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Functions/Test-CIPPStandardLicense.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Test-CIPPStandardLicense {
4545

4646
if ($Capabilities.Count -le 0) {
4747
if (!$SkipLog.IsPresent) {
48-
Write-LogMessage -API 'Standards' -tenant $TenantFilter -message "Tenant does not have the required capability to run standard $StandardName`: The tenant needs one of the following service plans: $($RequiredCapabilities -join ',')" -sev Error
48+
Write-LogMessage -API 'Standards' -tenant $TenantFilter -message "Tenant does not have the required capability to run standard $StandardName`: The tenant needs one of the following service plans: $($RequiredCapabilities -join ',')" -sev Info
4949
Set-CIPPStandardsCompareField -FieldName "standards.$StandardName" -FieldValue "License Missing: This tenant is not licensed for the following capabilities: $($RequiredCapabilities -join ',')" -Tenant $TenantFilter
5050
Write-Verbose "Tenant does not have the required capability to run standard $StandardName - $($RequiredCapabilities -join ','). Exiting"
5151
}
@@ -57,7 +57,7 @@ function Test-CIPPStandardLicense {
5757
if (!$SkipLog.IsPresent) {
5858
# Sanitize exception message to prevent JSON parsing issues - remove characters that could interfere with JSON detection
5959
$SanitizedMessage = $_.Exception.Message -replace '[{}\[\]]', ''
60-
Write-LogMessage -API 'Standards' -tenant $TenantFilter -message "Error checking license capabilities for standard $StandardName`: $SanitizedMessage" -sev Error
60+
Write-LogMessage -API 'Standards' -tenant $TenantFilter -message "Error checking license capabilities for standard $StandardName`: $SanitizedMessage" -sev Info
6161
Set-CIPPStandardsCompareField -FieldName "standards.$StandardName" -FieldValue "License Missing: Error checking license capabilities - $SanitizedMessage" -Tenant $TenantFilter
6262
}
6363
return $false

0 commit comments

Comments
 (0)