mirror of https://github.com/sirupsen/logrus.git
revert slight added complexity in NewEntry()
This commit is contained in:
parent
05a8f4db95
commit
4575b7a64d
4
entry.go
4
entry.go
|
@ -56,13 +56,11 @@ type Entry struct {
|
|||
}
|
||||
|
||||
func NewEntry(logger *Logger) *Entry {
|
||||
entry := &Entry{
|
||||
return &Entry{
|
||||
Logger: logger,
|
||||
// Default is three fields, plus one optional. Give a little extra room.
|
||||
Data: make(Fields, 6),
|
||||
}
|
||||
|
||||
return entry
|
||||
}
|
||||
|
||||
// Returns the string representation from the reader and ultimately the
|
||||
|
|
Loading…
Reference in New Issue