Merge pull request #139 from microsoft/fix-etw-logrus

etwlogrus: Fix event logging not including fields
This commit is contained in:
John Starks
2019-05-08 08:19:54 -07:00
committed by GitHub
-1
View File
@@ -69,7 +69,6 @@ func (h *Hook) Fire(e *logrus.Entry) error {
names := make([]string, 0, len(e.Data))
hasError := false
for k := range e.Data {
names := make([]string, 0, len(e.Data))
if k == logrus.ErrorKey {
// Always put the error last because it is optional in some events.
hasError = true