allow failed sql queries to be logged separately from all sql queries (#3133)

This commit is contained in:
Anthony Andriano
2024-09-06 08:50:53 -06:00
committed by GitHub
parent 14fbee86be
commit 4795837b2e
3 changed files with 8 additions and 1 deletions
@@ -40,4 +40,9 @@ class ConfigDataProvider
{
return (bool) $this->config->get('logger.sql');
}
public function logSqlFailed(): bool
{
return (bool) $this->config->get('logger.sqlFailed');
}
}
@@ -136,7 +136,7 @@ class EntityManagerFactory
$pdoProvider,
$this->log,
$this->configDataProvider->logSql(),
$this->configDataProvider->logSql()
$this->configDataProvider->logSqlFailed()
);
$binding = BindingContainerBuilder::create()
@@ -84,6 +84,8 @@ return [
'maxFileNumber' => 30,
'printTrace' => false,
'databaseHandler' => false,
'sql' => false,
'sqlFailed' => false,
],
'authenticationMethod' => 'Espo',
'globalSearchEntityList' => [