Skip to content

Commit

Permalink
More specific processor plugin usage logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jan 14, 2019
1 parent 05e318b commit 1ef9356
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dkron/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ retry:
origExec := *NewExecutionFromProto(execDoneReq)
execution = origExec
for k, v := range job.Processors {
log.WithField("plugin", k).Debug("grpc: Processing execution with plugin")
log.WithField("plugin", k).Info("grpc: Processing execution with plugin")
if processor, ok := grpcs.agent.ProcessorPlugins[k]; ok {
v["reporting_node"] = grpcs.agent.config.NodeName
e := processor.Process(&ExecutionProcessorArgs{Execution: origExec, Config: v})
execution = e
} else {
log.WithField("plugin", k).Error("grpc: Specified plugin not found")
}
}

Expand Down

0 comments on commit 1ef9356

Please sign in to comment.