Worker: change "running command" to "running Flamenco command" in log

There are Flamenco "commands" and CLI "commands", and it's nice to be
explicit about which is which. I'm sure this is needed in some other
areas as well.
This commit is contained in:
Sybren A. Stüvel 2022-08-30 10:34:40 +02:00
parent afdbbcc1d8
commit 87684a0d92

View File

@ -96,7 +96,7 @@ func NewCommandExecutor(cli CommandLineRunner, listener CommandListener, timeSer
func (ce *CommandExecutor) Run(ctx context.Context, taskID string, cmd api.Command) error { func (ce *CommandExecutor) Run(ctx context.Context, taskID string, cmd api.Command) error {
logger := log.With().Str("task", string(taskID)).Str("command", cmd.Name).Logger() logger := log.With().Str("task", string(taskID)).Str("command", cmd.Name).Logger()
logger.Info().Interface("parameters", cmd.Parameters).Msg("running command") logger.Info().Interface("parameters", cmd.Parameters).Msg("running Flamenco command")
runner, ok := ce.registry[cmd.Name] runner, ok := ce.registry[cmd.Name]
if !ok { if !ok {