mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: refactor error logs
This commit is contained in:
parent
26cbeee5af
commit
173fb41e63
3 changed files with 14 additions and 7 deletions
|
@ -174,8 +174,10 @@ export class PythonInstance {
|
|||
.then((response) => response.data);
|
||||
}
|
||||
|
||||
private static async handleRpcError(_error: unknown) {
|
||||
await this.rpc.get("/healthcheck").catch(() => {
|
||||
private static async handleRpcError(error: unknown) {
|
||||
logger.error(error);
|
||||
|
||||
return this.rpc.get("/healthcheck").catch(() => {
|
||||
logger.error(
|
||||
"RPC healthcheck failed. Killing process and starting again"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue