Squetching Logs

This commit is contained in:
John Haverlack 2026-01-31 19:27:58 -09:00
parent 2bde94657d
commit 54d14fad18
5 changed files with 8 additions and 7 deletions

View File

@ -11,7 +11,7 @@ const config = load_config();
log('=======================================================================================');
log(config.package.name + ': STARTING: ' + config.package.description + ' v' + config.package.version);
// log(JSON.stringify(config, null, 2));
log(JSON.stringify(config.dirs, null, 2), false);
// log(JSON.stringify(config.dirs, null, 2), false);
for (let m in config.modules) {
// log(`Loading module: ${m}`);

View File

@ -88,6 +88,6 @@ broker.on('publish', (packet, client) => {
// console.log(
// `Publish from ${client.id}: ${packet.topic}`
// );
log(`${module}: Publish from ${client.id}: ${packet.topic}`);
// log(`${module}: Publish from ${client.id}: ${packet.topic}`);
}
});

View File

@ -282,7 +282,7 @@ function startJoinHandler() {
if (err) {
log(`${module}: failed to publish join authz: ${err}`);
} else {
log(`${module}: published join authz to ${joinAuthzTopic}`);
// log(`${module}: published join authz to ${joinAuthzTopic}`);
}
}
);
@ -372,7 +372,7 @@ function publishStatus(client, topic) {
if (err) {
log(`${module}: failed to publish status: ${err}`);
} else {
log(`${module}: published status to ${topic}`);
// log(`${module}: published status to ${topic}`);
}
}
);
@ -412,7 +412,7 @@ function startUdpBeacon() {
desc: ''
};
log(`${module}: DEBUG: cluster: ${JSON.stringify(cluster)}`);
log(`${module}: cluster: ${JSON.stringify(cluster)}`);
if (!config.host?.network) {

View File

@ -9,6 +9,7 @@
},
"expiration_timeout": {
"cluster_status": 60000,
"cluster_workers": 60000
"cluster_workers": 60000,
"cluster_telemetry": 60000
}
}

View File

@ -10,7 +10,7 @@ const config = load_config();
log('=======================================================================================');
log(config.package.name + ': STARTING: ' + config.package.description + ' v' + config.package.version);
log(JSON.stringify(config, null, 2));
// log(JSON.stringify(config, null, 2));
// log(JSON.stringify(config.dirs, null, 2), false);
for (let m in config.modules) {