Merge pull request #43424 from nextcloud/enh/noid/debug-on-lazy-appconfig-loading

enh(appconfig): debug logs on lazy loadConfig
This commit is contained in:
Maxence Lange 2024-02-12 18:12:54 -01:00 committed by GitHub
commit c1fc1b29bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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');