From 89fb5f2d2a965cbd87babf82d59abdba351ddfb7 Mon Sep 17 00:00:00 2001 From: Lea Date: Sat, 29 Apr 2023 08:40:42 +0200 Subject: [PATCH] more logging --- src/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4dc3d96..66c149d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,10 @@ const runRestarts = async (status: Awaited>) => result.stdout?.on('data', data => console.log(data)); result.stderr?.on('data', data => console.log(data)); result.on('exit', code => { - if (code != 0) restarting.bot = false; // Assume restart command has failed + if (code != 0) { + console.log('Bot: Restart command seems to have failed!'); + restarting.bot = false; + } }); } catch(e) { console.log(e); @@ -100,7 +103,10 @@ const runRestarts = async (status: Awaited>) => result.stdout?.on('data', data => console.log(data)); result.stderr?.on('data', data => console.log(data)); result.on('exit', code => { - if (code != 0) restarting.bridge = false; + if (code != 0) { + console.log('Bridge: Restart command seems to have failed!'); + restarting.bridge = false; + } }); } catch(e) { console.log(e);