From 0815aa0591b880ff1f4bf074267f63a909a95018 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 24 Jan 2025 18:55:10 +0100 Subject: [PATCH] fix(LDAP): also log why the connection to main server failed Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Connection.php | 6 ++++-- 1 file 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, ] ); }