Skip to content

Commit 083d575

Browse files
committed
Reducing logger complexity
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 696bbc3 commit 083d575

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

github/resource_github_emu_group_mapping.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ func resourceGithubEMUGroupMappingRead(ctx context.Context, d *schema.ResourceDa
153153
groupID := toInt64(d.Get("group_id"))
154154
teamSlug := d.Get("team_slug").(string)
155155

156-
tflog.Debug(ctx, "Querying external groups linked to team from GitHub API", map[string]any{
157-
"org_name": orgName,
158-
"team_slug": teamSlug,
159-
})
156+
tflog.Debug(ctx, "Querying external groups linked to team from GitHub API")
160157

161158
groupsList, resp, err := client.Teams.ListExternalGroupsForTeamBySlug(ctx, orgName, teamSlug)
162159
if err != nil {
@@ -184,9 +181,7 @@ func resourceGithubEMUGroupMappingRead(ctx context.Context, d *schema.ResourceDa
184181
group := groupsList.Groups[0]
185182

186183
tflog.Debug(ctx, "Successfully retrieved external group from GitHub API", map[string]any{
187-
"configured_group_id": groupID,
188-
"upstream_group_id": group.GetGroupID(),
189-
"group_name": group.GetGroupName(),
184+
"group_name": group.GetGroupName(),
190185
})
191186

192187
if group.GetGroupID() != groupID {
@@ -229,11 +224,7 @@ func resourceGithubEMUGroupMappingUpdate(ctx context.Context, d *schema.Resource
229224

230225
if d.HasChange("team_slug") {
231226

232-
tflog.Debug(ctx, "Updating connected external group via GitHub API", map[string]any{
233-
"org_name": orgName,
234-
"team_slug": teamSlug,
235-
"group_id": groupID,
236-
})
227+
tflog.Debug(ctx, "Updating connected external group via GitHub API")
237228

238229
group, resp, err := client.Teams.UpdateConnectedExternalGroup(ctx, orgName, teamSlug, eg)
239230
if err != nil {

0 commit comments

Comments
 (0)