From abc0d80e803013ae3cf13c0e6ae0993997944847 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 5 Nov 2022 23:31:31 +0100 Subject: [PATCH] commands, log as info --- plugins/gocli/main.go | 2 +- plugins/rust/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gocli/main.go b/plugins/gocli/main.go index b57e57f..ea1239c 100644 --- a/plugins/gocli/main.go +++ b/plugins/gocli/main.go @@ -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 } diff --git a/plugins/rust/main.go b/plugins/rust/main.go index a915a40..ddc3fd2 100644 --- a/plugins/rust/main.go +++ b/plugins/rust/main.go @@ -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 }