mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-06 00:57:19 -04:00
Merge pull request #139 from microsoft/fix-etw-logrus
etwlogrus: Fix event logging not including fields
This commit is contained in:
@@ -69,7 +69,6 @@ func (h *Hook) Fire(e *logrus.Entry) error {
|
|||||||
names := make([]string, 0, len(e.Data))
|
names := make([]string, 0, len(e.Data))
|
||||||
hasError := false
|
hasError := false
|
||||||
for k := range e.Data {
|
for k := range e.Data {
|
||||||
names := make([]string, 0, len(e.Data))
|
|
||||||
if k == logrus.ErrorKey {
|
if k == logrus.ErrorKey {
|
||||||
// Always put the error last because it is optional in some events.
|
// Always put the error last because it is optional in some events.
|
||||||
hasError = true
|
hasError = true
|
||||||
|
|||||||
Reference in New Issue
Block a user