Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Nov 7, 2023
1 parent 54014d5 commit ac32993
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2559,6 +2559,7 @@ class VwWeconnect extends utils.Adapter {
this.log.info("Server not available:" + JSON.stringify(error.response.data));
return;
}
this.log.error("Fetching status failed");
this.log.error(error);
error && error.response && this.log.error(JSON.stringify(error.response.data));
reject();
Expand Down Expand Up @@ -2586,6 +2587,7 @@ class VwWeconnect extends utils.Adapter {
})
.catch((error) => {
this.log.debug(error);
this.log.debug("No parkingposition found");
// error.response && this.log.error(JSON.stringify(error.response.data));
});
if (this.config.vwatoken) {
Expand All @@ -2609,6 +2611,7 @@ class VwWeconnect extends utils.Adapter {
})
.catch((error) => {
this.log.debug(error);
this.log.debug("No climater found");
// error.response && this.log.error(JSON.stringify(error.response.data));
});
}
Expand Down Expand Up @@ -2640,6 +2643,7 @@ class VwWeconnect extends utils.Adapter {
return;
}
this.log.error(error);
this.log.error("No shortterm trips found please check your settings");
error && error.response && this.log.error(JSON.stringify(error.response.data));
});
}
Expand Down Expand Up @@ -2671,6 +2675,7 @@ class VwWeconnect extends utils.Adapter {
return;
}
this.log.error(error);
this.log.error("No longterm trips found please check your settings");
error && error.response && this.log.error(JSON.stringify(error.response.data));
});
}
Expand Down Expand Up @@ -2701,6 +2706,7 @@ class VwWeconnect extends utils.Adapter {
return;
}
this.log.error(error);
this.log.error("No last shortterm trips found");
error && error.response && this.log.error(JSON.stringify(error.response.data));
});
await axios({
Expand Down Expand Up @@ -2730,6 +2736,7 @@ class VwWeconnect extends utils.Adapter {
return;
}
this.log.error(error);
this.log.error("No last longterm trips found");
error && error.response && this.log.error(JSON.stringify(error.response.data));
});
});
Expand Down

0 comments on commit ac32993

Please sign in to comment.