Squetching Logs
This commit is contained in:
parent
2bde94657d
commit
54d14fad18
|
|
@ -11,7 +11,7 @@ const config = load_config();
|
||||||
log('=======================================================================================');
|
log('=======================================================================================');
|
||||||
log(config.package.name + ': STARTING: ' + config.package.description + ' v' + config.package.version);
|
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);
|
// log(JSON.stringify(config.dirs, null, 2), false);
|
||||||
|
|
||||||
for (let m in config.modules) {
|
for (let m in config.modules) {
|
||||||
// log(`Loading module: ${m}`);
|
// log(`Loading module: ${m}`);
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,6 @@ broker.on('publish', (packet, client) => {
|
||||||
// console.log(
|
// console.log(
|
||||||
// `Publish from ${client.id}: ${packet.topic}`
|
// `Publish from ${client.id}: ${packet.topic}`
|
||||||
// );
|
// );
|
||||||
log(`${module}: Publish from ${client.id}: ${packet.topic}`);
|
// log(`${module}: Publish from ${client.id}: ${packet.topic}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@ function startJoinHandler() {
|
||||||
if (err) {
|
if (err) {
|
||||||
log(`${module}: failed to publish join authz: ${err}`);
|
log(`${module}: failed to publish join authz: ${err}`);
|
||||||
} else {
|
} 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) {
|
if (err) {
|
||||||
log(`${module}: failed to publish status: ${err}`);
|
log(`${module}: failed to publish status: ${err}`);
|
||||||
} else {
|
} else {
|
||||||
log(`${module}: published status to ${topic}`);
|
// log(`${module}: published status to ${topic}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -412,7 +412,7 @@ function startUdpBeacon() {
|
||||||
desc: ''
|
desc: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
log(`${module}: DEBUG: cluster: ${JSON.stringify(cluster)}`);
|
log(`${module}: cluster: ${JSON.stringify(cluster)}`);
|
||||||
|
|
||||||
|
|
||||||
if (!config.host?.network) {
|
if (!config.host?.network) {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
},
|
},
|
||||||
"expiration_timeout": {
|
"expiration_timeout": {
|
||||||
"cluster_status": 60000,
|
"cluster_status": 60000,
|
||||||
"cluster_workers": 60000
|
"cluster_workers": 60000,
|
||||||
|
"cluster_telemetry": 60000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +10,7 @@ const config = load_config();
|
||||||
|
|
||||||
log('=======================================================================================');
|
log('=======================================================================================');
|
||||||
log(config.package.name + ': STARTING: ' + config.package.description + ' v' + config.package.version);
|
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);
|
// log(JSON.stringify(config.dirs, null, 2), false);
|
||||||
|
|
||||||
for (let m in config.modules) {
|
for (let m in config.modules) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue