diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-02-12 18:12:54 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 18:12:54 -0100 |
commit | c1fc1b29bc922cc61f1538cc9b7e6903cafdf867 (patch) | |
tree | ba9599041e70e428b979b3638ef6db3053a978c9 /lib/private/AppConfig.php | |
parent | 592012034e8ee3438d20f33486e785a29b819c2f (diff) | |
parent | 3e58a2501f163851adc94f9d73a0d93be5b9151f (diff) | |
download | nextcloud-server-c1fc1b29bc922cc61f1538cc9b7e6903cafdf867.tar.gz nextcloud-server-c1fc1b29bc922cc61f1538cc9b7e6903cafdf867.zip |
Merge pull request #43424 from nextcloud/enh/noid/debug-on-lazy-appconfig-loading
enh(appconfig): debug logs on lazy loadConfig
Diffstat (limited to 'lib/private/AppConfig.php')
-rw-r--r-- | lib/private/AppConfig.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 9148a34a50b..00e552dd24f 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -1160,6 +1160,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', ['exception' => new \RuntimeException('ignorable exception')]); + } + $qb = $this->connection->getQueryBuilder(); $qb->from('appconfig'); |