use exception for cleaner Trace

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2024-02-12 12:53:46 -01:00
parent ae8d6b6b69
commit 3e58a2501f

View file

@ -1160,7 +1160,7 @@ class AppConfig implements IAppConfig {
}
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()]);
$this->logger->debug('The loading of lazy AppConfig values have been requested', ['exception' => new \RuntimeException('ignorable exception')]);
}
$qb = $this->connection->getQueryBuilder();