Skip to content

Commit

Permalink
Merge pull request #1138 from dcharbonnier/patch-1
Browse files Browse the repository at this point in the history
fix(logger): display duration in seconds
  • Loading branch information
eysi09 authored Sep 2, 2019
2 parents d0fc1dc + 53ea69a commit fb7383c
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 fb7383c

Please sign in to comment.