File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ function Get-CIPPAlertSmtpAuthSuccess {
2727 } catch {
2828 # Suppress errors if no data returned
2929 # Uncomment if you want explicit error logging
30- Write-AlertMessage - tenant $ ($TenantFilter ) - message " Failed to query SMTP AUTH sign-ins for $ ( $TenantFilter ) : $ ( Get-NormalizedError - message $_.Exception.message ) "
30+ # Write-AlertMessage -tenant $($TenantFilter) -message "Failed to query SMTP AUTH sign-ins for $($TenantFilter): $(Get-NormalizedError -message $_.Exception.message)"
3131 }
3232}
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ function Write-AlertTrace {
1515 $Row = Get-CIPPAzDataTableEntity @table - Filter " RowKey eq '$ ( $tenantFilter ) -$ ( $cmdletName ) ' and PartitionKey eq '$PartitionKey '"
1616 try {
1717 $RowData = $Row.LogData
18- $Compare = Compare-Object $RowData (ConvertTo-Json - InputObject $data - Compress - Depth 10 | Out-String )
18+ $Compare = Compare-Object $RowData (ConvertTo-Json - InputObject $data - Compress - Depth 10 )
1919 if ($Compare ) {
20- $LogData = ConvertTo-Json - InputObject $data - Compress - Depth 10 | Out-String
20+ $LogData = ConvertTo-Json - InputObject $data - Compress - Depth 10
2121 $TableRow = @ {
2222 ' PartitionKey' = $PartitionKey
2323 ' RowKey' = " $ ( $tenantFilter ) -$ ( $cmdletName ) "
@@ -31,7 +31,7 @@ function Write-AlertTrace {
3131 return $data
3232 }
3333 } catch {
34- $LogData = ConvertTo-Json - InputObject $data - Compress - Depth 10 | Out-String
34+ $LogData = ConvertTo-Json - InputObject $data - Compress - Depth 10
3535 $TableRow = @ {
3636 ' PartitionKey' = $PartitionKey
3737 ' RowKey' = " $ ( $tenantFilter ) -$ ( $cmdletName ) "
You can’t perform that action at this time.
0 commit comments