diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-01 16:30:45 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-01 22:33:41 +0100 |
commit | 168c673755eca62008d9bfa81d0185beba1ff24b (patch) | |
tree | 11a6a7c57788af6bb5dbdef9216e305e37c2f99d /apps/user_ldap/lib/AppInfo/Application.php | |
parent | 44ecd0d1d5f77e6798c1dd08da8120ba86585758 (diff) | |
download | nextcloud-server-168c673755eca62008d9bfa81d0185beba1ff24b.tar.gz nextcloud-server-168c673755eca62008d9bfa81d0185beba1ff24b.zip |
Allow to log DB, redis and LDAP requests into files
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_ldap/lib/AppInfo/Application.php')
-rw-r--r-- | apps/user_ldap/lib/AppInfo/Application.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/AppInfo/Application.php b/apps/user_ldap/lib/AppInfo/Application.php index 8c48682eddb..79998a580e5 100644 --- a/apps/user_ldap/lib/AppInfo/Application.php +++ b/apps/user_ldap/lib/AppInfo/Application.php @@ -75,8 +75,13 @@ class Application extends App implements IBootstrap { ); }); - $container->registerService(ILDAPWrapper::class, function () { - return new LDAP(); + $container->registerService(ILDAPWrapper::class, function (IAppContainer $appContainer) { + /** @var IServerContainer $server */ + $server = $appContainer->get(IServerContainer::class); + + return new LDAP( + $server->getConfig()->getSystemValueString('ldap_log_file') + ); }); } |