Skip to content

Commit

Permalink
fix(log length): to save space show only first iana item
Browse files Browse the repository at this point in the history
  • Loading branch information
syroegkin committed May 24, 2023
1 parent 51951b7 commit 934cfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nxtp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function nxtp(socket: net.Socket) {
await sockerWritePromise(socket, response);
// Close socket
socket.destroy();
console.log(`${remoteAddress}: Requested time for ${nxtpTimezone}, resolved to ${iana}`);
console.log(`${remoteAddress}: Requested time for ${nxtpTimezone}, resolved to ${iana[0]}`);
} catch (e: unknown) {
console.log(`${remoteAddress}: ${(e as Error).message}`);
socket.destroy();
Expand Down

0 comments on commit 934cfef

Please sign in to comment.