update server

This commit is contained in:
Raven Scott 2024-11-30 04:06:28 -05:00
parent 40c1d7a5fb
commit 925ae73cad
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules
package-lock.json
server/.env

View File

@ -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}`);
});
});
});