stop stat spam

This commit is contained in:
Raven Scott 2024-11-30 04:09:21 -05:00
parent 925ae73cad
commit f3695c274b

View File

@ -52,7 +52,9 @@ swarm.on('connection', (peer) => {
peer.on('data', async (data) => {
try {
const parsedData = JSON.parse(data.toString());
if (!(parsedData.command === 'stats' && Object.keys(parsedData.args).length === 0)) {
console.log(`[DEBUG] Received data from peer: ${JSON.stringify(parsedData)}`);
}
let response;
switch (parsedData.command) {