diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index 42e53a7..7786006 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -384,7 +384,7 @@ class SettingsController extends Controller return $tables; } catch (Exception $e) { - $this->logger->logException($e); + $this->logger->error('Error during table autocompletion', [ 'exception' => $e ]); return []; } } @@ -431,7 +431,7 @@ class SettingsController extends Controller return $columns; } catch (Exception $e) { - $this->logger->logException($e); + $this->logger->error('Error during column autocompletion', [ 'exception' => $e ]); return []; } } diff --git a/lib/Properties.php b/lib/Properties.php index db94fb0..f7d49ba 100644 --- a/lib/Properties.php +++ b/lib/Properties.php @@ -144,9 +144,7 @@ class Properties implements \ArrayAccess $params, array_values($reflection->getConstants()) ); } catch (\ReflectionException $exception) { - $this->logger->logException( - $exception, ["app" => $this->appName] - ); + $this->logger->error('Unable to determine parameter names', [ 'exception'=> $exception ]); } } diff --git a/lib/Query/DataQuery.php b/lib/Query/DataQuery.php index b68ae2e..ea33803 100644 --- a/lib/Query/DataQuery.php +++ b/lib/Query/DataQuery.php @@ -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; } }