Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quzard committed Dec 27, 2023
1 parent c3c6227 commit 7db44de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pluginmanager/plugin_runner_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,10 @@ func (p *pluginv1Runner) ReceiveLogGroup(logGroup pipeline.LogGroupWithContext)
context[ctxKeyTags] = logGroup.LogGroup.LogTags
p.ReceiveRawLog(&pipeline.LogWithContext{Log: log, Context: context})
} else {
context := logGroup.Context
context := map[string]interface{}{}
for key, value := range logGroup.Context {
context[key] = value
}
context[ctxKeyTopic] = topic
for _, tag := range logGroup.LogGroup.LogTags {
log.Contents = append(log.Contents, &protocol.Log_Content{
Expand Down

0 comments on commit 7db44de

Please # to comment.