Skip to content

Commit

Permalink
fix(ntpclient): Reduce loglevel of more error codes to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jun 2, 2021
1 parent ec975aa commit ec4ee08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/lib/NTPClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class NTPClient {
if (typeof e?.code === "string") {
switch (e.code) {
case "EAI_AGAIN":
case "ENETUNREACH":
case "ENETDOWN":
case "EAGAIN":
case "ECONNABORTED":
case "ECONNRESET":
case "EPIPE":
error.type = States.ValetudoNTPClientErrorState.ERROR_TYPE.TRANSIENT;
break;
case "ENOTFOUND":
Expand Down

0 comments on commit ec4ee08

Please sign in to comment.