debug lazy loadConfig

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2024-02-07 08:35:00 -01:00
parent bea8bf9032
commit ae8d6b6b69

View File

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