commands, log as info

This commit is contained in:
Kasper Juul Hermansen 2022-11-05 23:31:31 +01:00
parent c724bff698
commit abc0d80e80
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ type GoCliPlugin struct{}
// Do implements register.Plugin
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
hclog.L().Info("received command: %s", cmd.CommandName)
hclog.L().Info("received command", "commandName", cmd.CommandName)
return nil
}

View File

@ -12,7 +12,7 @@ type GoCliPlugin struct{}
// Do implements register.Plugin
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
hclog.L().Info("received command: %s", cmd.CommandName)
hclog.L().Info("received command", "commandName", cmd.CommandName)
return nil
}