Merge pull request #50405 from nextcloud/fix/noid/ldap-no-connection-reason

fix(LDAP): also log why the connection to main server failed
This commit is contained in:
Andy Scherzinger 2025-01-24 21:34:27 +01:00 committed by GitHub
commit 4aa16840f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -614,9 +614,11 @@ class Connection extends LDAPUtility {
}
}
$this->logger->warning(
'Main LDAP not reachable, connecting to backup',
'Main LDAP not reachable, connecting to backup: {msg}',
[
'app' => 'user_ldap'
'app' => 'user_ldap',
'msg' => $e->getMessage(),
'exception' => $e,
]
);
}