From 007009f7a6da2576f340ce965a4d6f190def7760 Mon Sep 17 00:00:00 2001 From: Siva Shanmukh Vetcha Date: Tue, 9 Apr 2024 10:20:22 -0400 Subject: [PATCH] chore: add logs on dns errors (#3257) --- src/util/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/utils.js b/src/util/utils.js index 0ba6008368..d74603dd7a 100644 --- a/src/util/utils.js +++ b/src/util/utils.js @@ -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',