From b7efe3f08c1b5631fc82d78c2e9d9022b4bdcf95 Mon Sep 17 00:00:00 2001 From: T31M Date: Sat, 25 Jan 2020 13:40:44 +0100 Subject: [PATCH] chore: fix length padding --- javascript_typescript/logging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript_typescript/logging.js b/javascript_typescript/logging.js index c1b5b05..75ffb92 100644 --- a/javascript_typescript/logging.js +++ b/javascript_typescript/logging.js @@ -12,7 +12,7 @@ const maxFunctionLogLength = 60; const myFormat = printf(({ timestamp, loc, level, message }) => { const start = process.hrtime(); if (loc) { - return `${timestamp} ${level}: ${message.padEnd(90)} ${loc.padEnd( + return `${timestamp} ${level}: ${message.padEnd(105 - level.length)} ${loc.padEnd( 60 )} log: ${(process.hrtime(start)[1] / 1000000).toFixed(2)}ms`; }