allow failed sql queries to be logged separately from all sql queries (#3133)
This commit is contained in:
@@ -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' => [
|
||||
|
||||
Reference in New Issue
Block a user