Skip to content

Commit

Permalink
fix(logger): add info symbol to active basic entries
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 committed May 20, 2019
1 parent b7bf2ad commit 08bb594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions garden-service/src/logger/writers/basic-terminal-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export class BasicTerminalWriter extends Writer {
render(entry: LogEntry, logger: Logger): string | null {
const level = this.level || logger.level
if (level >= entry.level) {
// Use info symbol for active entries because basic logger doesn't have a spinner
if (entry.opts.status === "active" && !entry.opts.symbol) {
entry.opts.symbol = "info"
}
return formatForTerminal(entry)
}
return null
Expand Down

0 comments on commit 08bb594

Please sign in to comment.