opencloud icon indicating copy to clipboard operation
opencloud copied to clipboard

Error messages logged at wrong level

Open kaivol opened this issue 4 months ago • 0 comments

Describe the bug

While configuring OpenCloud to work with an external LDAP server, I encountered errors like this:

{
"level":"debug",
"service":"graph",
"request-id":"***",
"error":"itemNotFound: not found",
"time":"***",
"line":"github.com/opencloud-eu/opencloud/services/graph/pkg/service/v0/groups.go:253",
"message":"could not get group: backend error"
}

(Source groups.go)

or

{
"level":"debug",
"service":"graph",
"request-id":"***",
"error":"itemNotFound: not found",
"entry":"***",
"time":"***",
"line":"github.com/opencloud-eu/opencloud/services/graph/pkg/identity/ldap.go:1117",
"message":"error reading attribute member entry"
}

(Source ldap.go)

If I'm not missing anything, these should be logged at the appropriate level error, not at debug.

kaivol avatar Aug 17 '25 20:08 kaivol