Skip to content

Commit 802f915

Browse files
abbyckfairclothjm
andauthored
use structured logging
Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
1 parent 49f1b2e commit 802f915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider_azure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ func (a *AzureProvider) FetchGroups(_ context.Context, b *jwtAuthBackend, allCla
7575
}
7676
groups, err := a.getAzureGroups(fmt.Sprintf("https://%s%s%s", microsoftGraphHost, microsoftGraphAPIVersion, getMemberObjectsPath), tokenSource)
7777
if err != nil {
78-
return nil, fmt.Errorf("unable to fetch groups from Microsoft Graph API: %s", err)
78+
return nil, fmt.Errorf("unable to fetch groups from Microsoft Graph API: %w", err)
7979
}
80-
b.Logger().Debug(fmt.Sprintf("groups from Microsoft Graph API: %v", groups))
80+
b.Logger().Debug("groups fetched from Microsoft Graph API", "groups", groups)
8181
return groups, nil
8282
}
8383

0 commit comments

Comments
 (0)