aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2025-01-24 18:55:10 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2025-01-24 18:55:10 +0100
commit0815aa0591b880ff1f4bf074267f63a909a95018 (patch)
tree1a1fc8e2e0a72ad44e79b92e912e3bfa726683d0
parent60e85032268414beaa998715dfc21d1dc5188bf4 (diff)
downloadnextcloud-server-fix/noid/ldap-no-connection-reason.tar.gz
nextcloud-server-fix/noid/ldap-no-connection-reason.zip
fix(LDAP): also log why the connection to main server failedfix/noid/ldap-no-connection-reason
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/Connection.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index f0b1fa17ee6..93a83709055 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -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,
]
);
}