Skip to content

Commit 46bdb84

Browse files
authored
BED-4602: Reduce Verbose Log Output (#161)
1 parent 752e8a4 commit 46bdb84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+54
-49
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ $RECYCLE.BIN/
130130
# Generated files
131131
.idea/**/contentModel.xml
132132

133+
# Plugin metadata
134+
.idea/**/go.imports.xml
135+
.idea/**/material_theme_project_new.xml
136+
133137
# Sensitive or high-churn files
134138
.idea/**/dataSources/
135139
.idea/**/dataSources.ids

cmd/list-app-owners.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func listAppOwners(ctx context.Context, client client.AzureClient, apps <-chan a
8989
Owner: item.Ok,
9090
AppId: app.Data.Id,
9191
}
92-
log.V(2).Info("found app owner", "appOwner", appOwner)
92+
log.V(2).Info("found app owner", "appId", appOwner.AppId)
9393
count++
9494
data.Owners = append(data.Owners, appOwner)
9595
}

cmd/list-app-role-assignments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func listAppRoleAssignments(ctx context.Context, client client.AzureClient, serv
102102
if item.Error != nil {
103103
log.Error(item.Error, "unable to continue processing app role assignments for this service principal", "servicePrincipalId", servicePrincipal)
104104
} else {
105-
log.V(2).Info("found app role assignment", "roleAssignments", item)
105+
log.V(2).Info("found app role assignment", "appRoleId", item.Ok.AppRoleId)
106106
count++
107107
if ok := pipeline.SendAny(ctx.Done(), out, AzureWrapper{
108108
Kind: enums.KindAZAppRoleAssignment,

cmd/list-apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func listApps(ctx context.Context, client client.AzureClient) <-chan azureWrappe
7070
log.Error(item.Error, "unable to continue processing applications")
7171
return
7272
} else {
73-
log.V(2).Info("found application", "app", item)
73+
log.V(2).Info("found application", "id", item.Ok.AppId, "name", item.Ok.DisplayName)
7474
count++
7575
if ok := pipeline.Send(ctx.Done(), out, NewAzureWrapper(
7676
enums.KindAZApp,

cmd/list-automation-account-role-assignments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func listAutomationAccountRoleAssignments(ctx context.Context, client client.Azu
110110
ObjectId: id,
111111
RoleDefinitionId: roleDefinitionId,
112112
}
113-
log.V(2).Info("found automation account role assignment", "automationAccountRoleAssignment", automationAccountRoleAssignment)
113+
log.V(2).Info("found automation account role assignment", "roleDefinitionId", automationAccountRoleAssignment.RoleDefinitionId)
114114
count++
115115
automationAccountRoleAssignments.RoleAssignments = append(automationAccountRoleAssignments.RoleAssignments, automationAccountRoleAssignment)
116116
}

cmd/list-automation-accounts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func listAutomationAccounts(ctx context.Context, client client.AzureClient, subs
102102
ResourceGroupId: resourceGroupId,
103103
TenantId: client.TenantInfo().TenantId,
104104
}
105-
log.V(2).Info("found automation account", "automationAccount", automationAccount)
105+
log.V(2).Info("found automation account", "name", automationAccount.Name)
106106
count++
107107
if ok := pipeline.SendAny(ctx.Done(), out, AzureWrapper{
108108
Kind: enums.KindAZAutomationAccount,

cmd/list-container-registries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func listContainerRegistries(ctx context.Context, client client.AzureClient, sub
107107
ResourceGroupId: resourceGroupId,
108108
TenantId: client.TenantInfo().TenantId,
109109
}
110-
log.V(2).Info("found container registry", "containerRegistry", containerRegistry)
110+
log.V(2).Info("found container registry", "name", containerRegistry.Name)
111111
count++
112112
if ok := pipeline.SendAny(ctx.Done(), out, AzureWrapper{
113113
Kind: enums.KindAZContainerRegistry,

cmd/list-container-registry-role-assignments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func listContainerRegistryRoleAssignments(ctx context.Context, client client.Azu
115115
ObjectId: id,
116116
RoleDefinitionId: roleDefinitionId,
117117
}
118-
log.V(2).Info("found container registry role assignment", "containerRegistryRoleAssignment", containerRegistryRoleAssignment)
118+
log.V(2).Info("found container registry role assignment", "roleDefinitionId", roleDefinitionId)
119119
count++
120120
containerRegistryRoleAssignments.RoleAssignments = append(containerRegistryRoleAssignments.RoleAssignments, containerRegistryRoleAssignment)
121121
}

cmd/list-device-owners.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func listDeviceOwners(ctx context.Context, client client.AzureClient, devices <-
105105
Owner: item.Ok,
106106
DeviceId: id,
107107
}
108-
log.V(2).Info("found device owner", "deviceOwner", deviceOwner)
108+
log.V(2).Info("found device owner", "deviceId", deviceOwner.DeviceId)
109109
count++
110110
data.Owners = append(data.Owners, deviceOwner)
111111
}

cmd/list-devices.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func listDevices(ctx context.Context, client client.AzureClient) <-chan interfac
7070
log.Error(item.Error, "unable to continue processing devices")
7171
return
7272
} else {
73-
log.V(2).Info("found device", "device", item)
73+
log.V(2).Info("found device", "deviceId", item.Ok.DeviceId)
7474
count++
7575
if ok := pipeline.SendAny(ctx.Done(), out, AzureWrapper{
7676
Kind: enums.KindAZDevice,

0 commit comments

Comments
 (0)