mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix: use fileEvent instead of event when appending fields for file logger
Co-authored-by: argobell <183611258+argobell@users.noreply.github.com>
This commit is contained in:
@@ -209,7 +209,7 @@ func logMessage(level LogLevel, component string, message string, fields map[str
|
||||
fileEvent.Str("component", component)
|
||||
}
|
||||
|
||||
appendFields(event, fields)
|
||||
appendFields(fileEvent, fields)
|
||||
fileEvent.Msg(message)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user