Skip to content

Commit

Permalink
chore: add logs on dns errors (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivashanmukh authored Apr 9, 2024
1 parent c204113 commit 007009f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const staticLookup = (transformerVersionId) => async (hostname, _, cb) => {
try {
ips = await resolver.resolve4(hostname);
} catch (error) {
logger.error(`DNS Error Code: ${error.code} | Message : ${error.message}`);
stats.timing('fetch_dns_resolve_time', resolveStartTime, {
transformerVersionId,
error: 'true',
Expand Down

0 comments on commit 007009f

Please sign in to comment.