Skip to content

Commit

Permalink
tweak it again
Browse files Browse the repository at this point in the history
  • Loading branch information
raiyaj committed Nov 3, 2022
1 parent 53a38cc commit 70b0879
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/pwa-kit-dev/bin/pwa-kit-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,10 @@ const main = () => {
ws.on('message', (data) => {
JSON.parse(data).forEach((log) => {
const {message, shortRequestId, level} = scriptUtils.parseLog(log.message)
const paddedLevel = level.padEnd(6)
console.log(
chalk.green(new Date(log.timestamp).toISOString()),
chalk.cyan(shortRequestId),
level.toLowerCase() in colors
? chalk[colors[level.toLowerCase()]].bold(paddedLevel)
: paddedLevel,
chalk[colors[level.toLowerCase()] || 'cyan'].bold(level.padEnd(6)),
message
)
})
Expand Down

0 comments on commit 70b0879

Please sign in to comment.