Get rid of logException()

This commit is contained in:
Claus-Justus Heine
2025-04-18 17:46:51 +02:00
parent 964260ab7a
commit dc5458e9a8
3 changed files with 5 additions and 11 deletions

View File

@@ -113,9 +113,7 @@ class DataQuery
try {
$result = $this->connection->prepare($query, $limit, $offset);
} catch (DBALException $exception) {
$this->logger->logException(
$exception, [ 'message' => "Could not prepare the query: " . $query ]
);
$this->logger->error('Could not prepare the query: ' . $query, [ 'exception' => $exception ]);
return false;
}
@@ -130,9 +128,7 @@ class DataQuery
return $result;
} catch (DBALException $exception) {
$this->logger->logException(
$exception, [ 'message' => "Could not execute the query: " . $query ]
);
$this->logger->error('Could not execute the query: ' . $query, [ 'exception' => $exception ]);
return false;
}
}