Skip to content

Commit

Permalink
fix(logger): display duration in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharbonnier authored Sep 2, 2019
1 parent d0fc1dc commit 53ea69a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions garden-service/src/tasks/hot-reload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ export class HotReloadTask extends BaseTask {
throw err
}

const msec = log.getDuration(5) * 1000
log.setSuccess({
msg: chalk.green(`Done (took ${msec} ms)`),
append: true,
})
log.setSuccess({ msg: chalk.green(`Done (took ${log.getDuration(1)} sec)`), append: true })

return {}
}
Expand Down

0 comments on commit 53ea69a

Please sign in to comment.