From bd9a50c2d5e608d5064ff15068ecc12dd284e698 Mon Sep 17 00:00:00 2001 From: gmgigi96 Date: Wed, 26 Apr 2023 18:22:39 +0200 Subject: [PATCH] log error caching group details --- pkg/cbox/group/rest/rest.go | 1 + pkg/cbox/user/rest/rest.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/cbox/group/rest/rest.go b/pkg/cbox/group/rest/rest.go index 6751d7d3c4..7fe5306301 100644 --- a/pkg/cbox/group/rest/rest.go +++ b/pkg/cbox/group/rest/rest.go @@ -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 } } diff --git a/pkg/cbox/user/rest/rest.go b/pkg/cbox/user/rest/rest.go index ca52f7dbf4..817d0da754 100644 --- a/pkg/cbox/user/rest/rest.go +++ b/pkg/cbox/user/rest/rest.go @@ -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 } }