change logger level

Signed-off-by: Christian Richter <c.richter@opencloud.eu>
This commit is contained in:
Christian Richter
2026-05-18 15:25:03 +02:00
committed by Christian Richter
parent 0a0be61d82
commit 0351adfe6b
2 changed files with 3 additions and 3 deletions

View File

@@ -1137,7 +1137,7 @@ func (i *LDAP) expandLDAPAttributeEntries(ctx context.Context, e *ldap.Entry, at
ue, err := i.getUserByDN(entryDN, searchTerm)
if err != nil {
// Ignore errors when reading a specific entry fails, just log them and continue
logger.Debug().Err(err).Str("entry", entryDN).Msg("error reading attribute member entry")
logger.Error().Err(err).Str("entry", entryDN).Msg("error reading attribute member entry")
continue
}
result = append(result, ue)

View File

@@ -9,8 +9,8 @@ import (
"strings"
"github.com/CiscoM31/godata"
"github.com/opencloud-eu/opencloud/services/graph/pkg/errorcode"
libregraph "github.com/opencloud-eu/libre-graph-api-go"
"github.com/opencloud-eu/opencloud/services/graph/pkg/errorcode"
"github.com/go-chi/chi/v5"
"github.com/go-chi/render"
@@ -250,7 +250,7 @@ func (g Graph) GetGroup(w http.ResponseWriter, r *http.Request) {
Msg("calling get group on backend")
group, err := g.identityBackend.GetGroup(r.Context(), groupID, r.URL.Query())
if err != nil {
logger.Debug().Err(err).Msg("could not get group: backend error")
logger.Error().Err(err).Msg("could not get group: backend error")
errorcode.RenderError(w, r, err)
return
}