Skip to content

Commit

Permalink
reduce error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Jan 22, 2025
1 parent 00ce833 commit 8e5b8ac
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 259 deletions.
10 changes: 7 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1778,9 +1778,13 @@ class Parcel extends utils.Adapter {
this.ignoredPath.push(element.path);
}
}
this.log.error(element.url);
this.log.error(error);
error.response && this.log.error(JSON.stringify(error.response.data));
if (error.code === 'ECONNRESET' || error.code === 'ETIMEDOUT') {
this.log.info(id + ' is not available. Maybe the service down or overloaded at the moment');
} else {
this.log.error(element.url);
this.log.error(error);
error.response && this.log.error(JSON.stringify(error.response.data));
}
});
}
}
Expand Down
Loading

0 comments on commit 8e5b8ac

Please sign in to comment.