aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-02-07 08:35:00 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-02-07 08:35:00 -0100
commitae8d6b6b69c9901d29ed8e1d2e4170792bf338dd (patch)
tree888bcd5729c533484f7a382e1b0bf9ab36fde9ab /lib/private
parentbea8bf903267b47a0427181fc3099e48eacc953f (diff)
downloadnextcloud-server-ae8d6b6b69c9901d29ed8e1d2e4170792bf338dd.tar.gz
nextcloud-server-ae8d6b6b69c9901d29ed8e1d2e4170792bf338dd.zip
debug lazy loadConfig
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/AppConfig.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index 60b0e77f7af..6bac2e48055 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -1159,6 +1159,10 @@ class AppConfig implements IAppConfig {
return;
}
+ if (($lazy ?? true) !== false) { // if lazy is null or true, we debug log
+ $this->logger->debug('The loading of lazy AppConfig values have been requested', ['trace' => debug_backtrace()]);
+ }
+
$qb = $this->connection->getQueryBuilder();
$qb->from('appconfig');