Get rid of logException()
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 ]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user