mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 16:47:31 -04:00
etwlogrus: Fix event logging not including fields
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
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