mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
better debug messages
This commit is contained in:
@@ -50,8 +50,10 @@ exports.initStats = async function () {
|
||||
try {
|
||||
talkgroupStats = JSON.parse(fileContents);
|
||||
} 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
|
||||
@@ -64,9 +66,12 @@ exports.initStats = async function () {
|
||||
try {
|
||||
decodeErrorsFreq = JSON.parse(fileContents);
|
||||
} 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()) {
|
||||
const obj = item.toObject();
|
||||
|
||||
Reference in New Issue
Block a user