Skip to content

Commit

Permalink
log error caching group details
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Apr 26, 2023
1 parent 5a63ed7 commit bd9a50c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cbox/group/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ func (m *manager) fetchAllGroupAccounts(ctx context.Context) error {
continue
}
if _, err := m.parseAndCacheGroup(ctx, g); err != nil {
log.Error().Err(err).Interface("group", g).Msg("rest: error caching group")
continue
}
}
Expand Down
1 change: 1 addition & 0 deletions pkg/cbox/user/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func (m *manager) fetchAllUserAccounts(ctx context.Context) error {

for _, usr := range r.Data {
if _, err := m.parseAndCacheUser(ctx, usr); err != nil {
log.Error().Err(err).Interface("user", usr).Msg("rest: error caching user")
continue
}
}
Expand Down

0 comments on commit bd9a50c

Please sign in to comment.