From 94d8fa5d57ba96a7621b1d23995b3f7f9de830e0 Mon Sep 17 00:00:00 2001 From: Baud Date: Sat, 1 Jun 2024 16:12:46 +0100 Subject: [PATCH] Yes, it's debugging --- index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 9c5eca9..dd854d6 100644 --- a/index.ts +++ b/index.ts @@ -103,7 +103,7 @@ function handle_message(message: Partial) { newHyperdeck.sendCommand(new Commands.DeviceInfoCommand()).then((info) => { notifyClients({ event: "log", - message: JSON.stringify(info) + message: "DEVICE INFO " + JSON.stringify(info) }) let slots = info.slots === null ? 1 : info.slots; for (let index = 0; index < slots; index++) { @@ -111,7 +111,7 @@ function handle_message(message: Partial) { newHyperdeck.sendCommand(new Commands.SlotInfoCommand(index)).then((slot) => { notifyClients({ event: "log", - message: JSON.stringify(slot) + message: "SLOT " + JSON.stringify(slot) }) notifyClients({ event: "record_time_remaining", @@ -123,7 +123,7 @@ function handle_message(message: Partial) { console.log(JSON.stringify(err)) notifyClients({ event: "log", - message: JSON.stringify(err) + message: "ERR " + JSON.stringify(err) }) }) }, 1000) @@ -133,7 +133,7 @@ function handle_message(message: Partial) { console.log(JSON.stringify(err)) notifyClients({ event: "log", - message: JSON.stringify(err) + message: "ERR " + JSON.stringify(err) }) }) }, 1000)