add fallback in case of not set headline

This commit is contained in:
Daniel Seifert 2019-09-19 20:04:25 +02:00
parent d8c60ce2c2
commit 6079ae7cf6

View File

@ -39,7 +39,7 @@ class OxidSQLLogger implements SQLLogger
public function startQuery($sql, array $params = null, array $types = null) public function startQuery($sql, array $params = null, array $types = null)
{ {
Monolog\Registry::sql()->addDebug( Monolog\Registry::sql()->addDebug(
$this->message, $this->message ? $this->message : $sql,
[ [
'query' => $sql, 'query' => $sql,
'params' => $params, 'params' => $params,