Skip to content

Commit

Permalink
fixed problem with log output on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed Nov 13, 2017
1 parent 22b5e09 commit fceffbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ type MessageReceiveFunc func(*amqp.Delivery) error
type SignalChannel chan os.Signal

func initLogging(verbose bool) {
log.Formatter = &logrus.TextFormatter{
ForceColors: true,
}
log.Out = NewColorableWriter(os.Stderr)
if verbose {
log.SetLevel(logrus.DebugLevel)
} else {
Expand Down

0 comments on commit fceffbb

Please sign in to comment.