mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-15 02:07:50 -05:00
better debug messages
This commit is contained in:
@@ -50,8 +50,10 @@ exports.initStats = async function () {
|
|||||||
try {
|
try {
|
||||||
talkgroupStats = JSON.parse(fileContents);
|
talkgroupStats = JSON.parse(fileContents);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error parsing JSON data:", error);
|
console.error("Talkgroup Stats - Error parsing JSON data:", error);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.error("Talkgroup Stats File not found: " + filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the decodeErrorsFreq.json file exists
|
// Check if the decodeErrorsFreq.json file exists
|
||||||
@@ -64,9 +66,12 @@ exports.initStats = async function () {
|
|||||||
try {
|
try {
|
||||||
decodeErrorsFreq = JSON.parse(fileContents);
|
decodeErrorsFreq = JSON.parse(fileContents);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error parsing JSON data:", error);
|
console.error("Decode Errors - Error parsing JSON data:", error);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.error("Decode Errors File not found: " + decodeErrorsFreqPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
for await (const item of SystemStat.find()) {
|
for await (const item of SystemStat.find()) {
|
||||||
const obj = item.toObject();
|
const obj = item.toObject();
|
||||||
|
|||||||
Reference in New Issue
Block a user