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:
Argobell
2026-03-16 16:46:13 +08:00
parent 0459deca03
commit 1ace296b91
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
}