Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/core/runtime/dns.hack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@
isCalled = true;

const cost = Date.now() - start;
const addressStr = Array.isArray(address)
? address.map((a) => `${a.address}(IPv${a.family})`).join(", ")
: address;
if (!err) {
logger.debug(`dns lookup [${cost}ms]: ${hostname} > ${address}`);
logger.debug(`dns lookup [${cost}ms]: ${hostname} > ${addressStr}`);

Check failure on line 92 in lib/core/runtime/dns.hack.ts

View workflow job for this annotation

GitHub Actions / lint-code

This line has a length of 82. Maximum allowed is 80
eventBus.emit(EVENT_LIST.DNS_LOOKUP_SUCCESS, address);
} else {
logger.error(`dns lookup [${cost}ms]: ${hostname} > ${address},
error: ${err.stack}`);
logger.error(`dns lookup [${cost}ms]: ${hostname} > ${addressStr}, error: ${err.stack}`);

Check failure on line 95 in lib/core/runtime/dns.hack.ts

View workflow job for this annotation

GitHub Actions / lint-code

This line has a length of 103. Maximum allowed is 80

eventBus.emit(EVENT_LIST.DNS_LOOKUP_ERROR, err);
}
Expand Down
Loading