From c0c719f7bf188b2775a2ca74c4c982a797189ecd Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 10 Aug 2023 22:41:59 -0400 Subject: [PATCH] Testing --- Dockerfile | 2 +- functions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e7e0027..6df93c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ WORKDIR /usr/src/app COPY package.json ./ RUN npm install COPY . . -CMD ["/bin/sh", "-c", "node main.js 2> /logs/nodbot.error 1> /logs/nodbot.log"] \ No newline at end of file +CMD ["/bin/sh", "-c", "node main.js 2> /logs/$(date +%Y-%m-%d_%H-%M-%S)-error.txt 1> /logs/$(date +%Y-%m-%d_%H-%M-%S)-status.txt"] \ No newline at end of file diff --git a/functions.js b/functions.js index 7b25d71..63bd517 100644 --- a/functions.js +++ b/functions.js @@ -672,7 +672,7 @@ const functions = { return errorId; }, async sendHeartbeat(url) { - console.log(url); + if (isDev) console.log("Heartbeat Sent: " + url); https.get(url, async (response) => { let data = '';