Skip to content

Commit

Permalink
fix(pkg/processor/processor) - rename logger field
Browse files Browse the repository at this point in the history
  • Loading branch information
PxyUp committed Jan 13, 2024
1 parent eef7072 commit 6ff30f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func CreateProcessor(item *config.Item, logger logger.Logger) Processor {
if item.Name == "" {
return Null(errMissingName)
}

var notifierInstance notifier.Notifier

if item.NotifierConfig != nil {
Expand All @@ -105,5 +105,5 @@ func CreateProcessor(item *config.Item, logger logger.Logger) Processor {

logger = logger.With("name", item.Name)

return New(parser.NewEngine(item.ConnectorConfig, logger.With("component", "engine")), item.Model, notifierInstance).WithLogger(logger)
return New(parser.NewEngine(item.ConnectorConfig, logger.With("component", "processor_engine")), item.Model, notifierInstance).WithLogger(logger)
}

0 comments on commit 6ff30f2

Please sign in to comment.