Skip to content

Commit

Permalink
chore(chalk): fix chalk log prefix formatting
Browse files Browse the repository at this point in the history
Closes #782
  • Loading branch information
C0ZEN committed Aug 20, 2022
1 parent a9deaf1 commit e5de17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/scripts/logger.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const LOG_TYPE_PREFIX_MAP = {
* @returns {string} Return the formatted log type
*/
function getLogTypePrefix(logType) {
return LOG_TYPE_PREFIX_MAP[logType];
return LOG_TYPE_PREFIX_MAP[logType]();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion scripts/logger.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const LOG_TYPE_PREFIX_MAP = {
* @returns {string} Return the formatted log type
*/
function getLogTypePrefix(logType) {
return LOG_TYPE_PREFIX_MAP[logType];
return LOG_TYPE_PREFIX_MAP[logType]();
}

/**
Expand Down

0 comments on commit e5de17a

Please sign in to comment.