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