Skip to content

Commit

Permalink
reduce ldap connect error log level
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <jkoberg@owncloud.com>
  • Loading branch information
kobergj committed Jun 20, 2023
1 parent 70b64d8 commit 8c09f9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/remove-ldap-errorlog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Remove ldap error log

Misleading error log was thrown sometimes when ocis starts. Reduced it to debug.

https://github.com/owncloud/ocis/pull/6565
4 changes: 2 additions & 2 deletions services/graph/pkg/identity/ldap/reconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (c ConnWithReconnect) GetConnection() (*ldap.Conn, error) {
func (c ConnWithReconnect) ldapAutoConnect(config Config) {
l, err := c.ldapConnect(config)
if err != nil {
c.logger.Error().Err(err).Msg("autoconnect could not get ldap Connection")
c.logger.Debug().Err(err).Msg("autoconnect could not get ldap Connection")
}

for {
Expand Down Expand Up @@ -243,7 +243,7 @@ func (c ConnWithReconnect) ldapConnect(config Config) (*ldap.Conn, error) {
}

if err != nil {
c.logger.Error().Err(err).Msg("could not get ldap Connection")
c.logger.Debug().Err(err).Msg("could not get ldap Connection")
} else {
c.logger.Debug().Msg("LDAP Connected")
if config.BindDN != "" {
Expand Down

0 comments on commit 8c09f9e

Please sign in to comment.