From 925ae73cadde2d58fe2ca59c568a64f22e85ef58 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 30 Nov 2024 04:06:28 -0500 Subject: [PATCH] update server --- .gitignore | 1 + server/server.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d5f19d8..a1f4e1e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules package-lock.json +server/.env diff --git a/server/server.js b/server/server.js index 802bdec..f0af250 100644 --- a/server/server.js +++ b/server/server.js @@ -345,16 +345,16 @@ docker.listContainers({ all: true }, async (err, containers) => { peer.write(JSON.stringify({ type: 'stats', data: statsData })); } } catch (parseErr) { - console.error(`[ERROR] Failed to parse stats for container ${containerInfo.Id}: ${parseErr.message}`); + // console.error(`[ERROR] Failed to parse stats for container ${containerInfo.Id}: ${parseErr.message}`); } }); stream.on('error', (streamErr) => { - console.error(`[ERROR] Stats stream error for container ${containerInfo.Id}: ${streamErr.message}`); + // console.error(`[ERROR] Stats stream error for container ${containerInfo.Id}: ${streamErr.message}`); }); stream.on('close', () => { - console.log(`[INFO] Stats stream closed for container ${containerInfo.Id}`); + // console.log(`[INFO] Stats stream closed for container ${containerInfo.Id}`); }); }); });