Skip to content

Commit

Permalink
better debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Sep 1, 2024
1 parent 847ed02 commit 1d2a542
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backend/sys_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 1d2a542

Please sign in to comment.