Skip to content

Commit

Permalink
[Enhancement] fixed the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Nov 8, 2021
1 parent e8a1b7e commit 2296ae5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports.logger = (message, type = "log") => {
switch (type) {
case "log":
return console.log(
`[${chalk.gray(date)}]: [${chalk.black.bgBlue(
`[${chalk.gray(date)}]: [${chalk.black.bgGreen(
type.toUpperCase()
)}] ${message}`
);
Expand All @@ -25,8 +25,6 @@ module.exports.logger = (message, type = "log") => {
)}] ${message}`
);
default:
throw new TypeError(
"Logger type must be either warn, debug, log, ready, cmd or error."
);
throw new TypeError("Logger type must be either log or error!");
}
};

0 comments on commit 2296ae5

Please sign in to comment.