sirupsen / logrus

Structured, pluggable logging for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextFormatter uses isTerminal before it's initialized

deadok22 opened this issue · comments

The isColored call in this snippet uses the isTerminal flag before it is initialized on the last line of this snippet. That results in the sort order of the fields in the first message formatted via TextFormatter not having its fields sorted.

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.

There's an approved MR: #1299