summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-06-13 17:47:53 -0400
committerAAGaming <aagaming@riseup.net>2024-06-13 17:47:53 -0400
commit54aecee64e5c549a440127995f94aeb77fb9d0dd (patch)
tree9dc1caa3e8fedc4722edb7b53257b1003173d48a /frontend/src
parent822b6bcaaa69389aeea815c313fefb20f1a080f7 (diff)
downloaddecky-loader-54aecee64e5c549a440127995f94aeb77fb9d0dd.tar.gz
decky-loader-54aecee64e5c549a440127995f94aeb77fb9d0dd.zip
hook up plugin events properly
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/toaster.tsx2
-rw-r--r--frontend/src/wsrouter.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/toaster.tsx b/frontend/src/toaster.tsx
index 7f08cb01..7b93c91c 100644
--- a/frontend/src/toaster.tsx
+++ b/frontend/src/toaster.tsx
@@ -79,7 +79,7 @@ class Toaster extends Logger {
};
instance = findToasterRoot(tree, 0);
while (!instance) {
- this.error(
+ this.warn(
'Failed to find Toaster root node, reattempting in 5 seconds. A developer may need to increase the recursion limit.',
);
await sleep(5000);
diff --git a/frontend/src/wsrouter.ts b/frontend/src/wsrouter.ts
index 75d74cde..00d0bd2e 100644
--- a/frontend/src/wsrouter.ts
+++ b/frontend/src/wsrouter.ts
@@ -136,7 +136,7 @@ export class WSRouter extends Logger {
if (this.runningCalls.has(data.id)) {
this.runningCalls.get(data.id)!.resolve(data.result);
this.runningCalls.delete(data.id);
- this.debug(`Resolved PY call ${data.id} with value`, data.result);
+ this.debug(`[${data.id}] Resolved PY call with value`, data.result);
}
break;
@@ -145,7 +145,7 @@ export class WSRouter extends Logger {
let err = new PyError(data.error.name, data.error.error, data.error.traceback);
this.runningCalls.get(data.id)!.reject(err);
this.runningCalls.delete(data.id);
- this.debug(`Rejected PY call ${data.id} with error`, data.error);
+ this.debug(`[${data.id}] Rejected PY call with error`, data.error);
}
break;
@@ -183,7 +183,7 @@ export class WSRouter extends Logger {
this.runningCalls.set(id, resolver);
- this.debug(`Calling PY method ${route} with args`, args);
+ this.debug(`[${id}] Calling PY method ${route} with args`, args);
this.write({ type: MessageType.CALL, route, args, id });