Skip to content

Commit

Permalink
fix: Bad log spacing depending on the FORMAT and COLORS options used
Browse files Browse the repository at this point in the history
fixes: verdaccio#4630

inserted a space between the timestamp and the message when logging timestamped messages.
  • Loading branch information
somethingSTRANGE committed May 7, 2024
1 parent 8d6caba commit 53925ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/logger-prettify/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export function padRight(message: string, max = message.length + CUSTOM_PAD_LENG
export function formatLoggingDate(time: number, message: string): string {
const timeFormatted = dayjs(time).format(FORMAT_DATE);

return `[${timeFormatted}]${message}`;
return `[${timeFormatted}] ${message}`;
}

0 comments on commit 53925ff

Please sign in to comment.