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

@@ -384,7 +384,7 @@ class SettingsController extends Controller
return $tables; return $tables;
} catch (Exception $e) { } catch (Exception $e) {
$this->logger->logException($e); $this->logger->error('Error during table autocompletion', [ 'exception' => $e ]);
return []; return [];
} }
} }
@@ -431,7 +431,7 @@ class SettingsController extends Controller
return $columns; return $columns;
} catch (Exception $e) { } catch (Exception $e) {
$this->logger->logException($e); $this->logger->error('Error during column autocompletion', [ 'exception' => $e ]);
return []; return [];
} }
} }

View File

@@ -144,9 +144,7 @@ class Properties implements \ArrayAccess
$params, array_values($reflection->getConstants()) $params, array_values($reflection->getConstants())
); );
} catch (\ReflectionException $exception) { } catch (\ReflectionException $exception) {
$this->logger->logException( $this->logger->error('Unable to determine parameter names', [ 'exception'=> $exception ]);
$exception, ["app" => $this->appName]
);
} }
} }

View File

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