x-cray / logrus-prefixed-formatter

Logrus Prefixed Log Formatter
MIT License
199 stars 107 forks source link

Fix double space in log line with empty message #24

Open gz-c opened 7 years ago

gz-c commented 7 years ago

When message was empty, terminal-formatted output will include an extra space e.g.

INFO  foo=bar

This changes the formatting to e.g.

INFO foo=bar