reduced logging

This commit is contained in:
DJ2LS 2024-04-26 21:16:24 +02:00
parent c5700e6e88
commit 1e640cc0c3

View file

@ -38,10 +38,10 @@ import {
export async function loadAllData() {
// TODO: Make this working
let stateData = await getModemState();
console.log(stateData);
//console.log(stateData);
let radioData = await getRadioStatus();
console.log(stateData);
//console.log(stateData);
getRemote();
getOverallHealth();
@ -58,7 +58,7 @@ export function connectionFailed(endpoint, event) {
export function stateDispatcher(data) {
data = JSON.parse(data);
//Leave commented when not needed, otherwise can lead to heap overflows due to the amount of data logged
console.log(data);
//console.log(data);
if (data["type"] == "state-change" || data["type"] == "state") {
stateStore.modem_connection = "connected";
stateStore.busy_state = data["is_modem_busy"];
@ -95,7 +95,7 @@ export function stateDispatcher(data) {
export function eventDispatcher(data) {
data = JSON.parse(data);
console.debug(data);
//console.debug(data);
if (data["scatter"] !== undefined) {
stateStore.scatter = JSON.parse(data["scatter"]);