Skip to content

Commit

Permalink
🐛 Fix: writing log sometimes disappeared
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Apr 15, 2019
1 parent c312302 commit d36c0ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class Logger {
let log = chalk[this.level[type]](`[PicGo ${type.toUpperCase()}]: `)
log += msg
console.log(log)
this.handleWriteLog(type, msg, this.ctx)
process.nextTick(() => {
this.handleWriteLog(type, msg, this.ctx)
})
return msg
} else {
return
Expand Down

0 comments on commit d36c0ae

Please sign in to comment.