Skip to content

Commit ab0d7da

Browse files
logging fixes
1 parent b317465 commit ab0d7da

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Modules/CIPPCore/Public/AuditLogs/New-CIPPAuditLogSearchResultsCache.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function New-CIPPAuditLogSearchResultsCache {
2626
}
2727
} catch {
2828
Write-Information "Error checking for failed downloads: $($_.Exception.Message)"
29-
# Continue with the process even if the rerun protection check fails
3029
}
3130

3231
try {
@@ -75,7 +74,7 @@ function New-CIPPAuditLogSearchResultsCache {
7574
$FailedDownloadsTable = Get-CippTable -TableName 'FailedAuditLogDownloads'
7675
$failedEntities = Get-CIPPAzDataTableEntity @FailedDownloadsTable -Filter "PartitionKey eq '$TenantFilter' and SearchId eq '$SearchId'"
7776
if ($failedEntities) {
78-
Remove-CIPPAzDataTableEntity @FailedDownloadsTable -Entity $entity
77+
Remove-AzDataTableEntity @FailedDownloadsTable -Entity $entity
7978
Write-Information "Removed failed download records for search ID: $SearchId, tenant: $TenantFilter"
8079
}
8180
} catch {

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function Test-CIPPAuditLogRules {
5555
if ($LogCount -gt 0) {
5656
$LocationTable = Get-CIPPTable -TableName 'knownlocationdb'
5757
$ProcessedData = foreach ($AuditRecord in $SearchResults) {
58-
Write-Host "Auditlogs: The record is $($AuditRecord.operation) - $($TenantFilter)"
58+
#Write-Host "Auditlogs: The record is $($AuditRecord.operation) - $($TenantFilter)"
5959
$RootProperties = $AuditRecord | Select-Object * -ExcludeProperty auditData
6060
$Data = $AuditRecord.auditData | Select-Object *, CIPPAction, CIPPClause, CIPPGeoLocation, CIPPBadRepIP, CIPPHostedIP, CIPPIPDetected, CIPPLocationInfo, CIPPExtendedProperties, CIPPDeviceProperties, CIPPParameters, CIPPModifiedProperties, AuditRecord -ErrorAction SilentlyContinue
6161
try {

0 commit comments

Comments
 (0)