From a5cd89db914d1b1352d8996c8eda20d70437e875 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 5 Nov 2022 23:25:19 +0100 Subject: [PATCH] commands, log as info --- plugins/gocli/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gocli/main.go b/plugins/gocli/main.go index 702ab59..b57e57f 100644 --- a/plugins/gocli/main.go +++ b/plugins/gocli/main.go @@ -5,13 +5,14 @@ import ( "log" "git.front.kjuulh.io/kjuulh/char/pkg/register" + "github.com/hashicorp/go-hclog" ) type GoCliPlugin struct{} // Do implements register.Plugin func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error { - log.Printf("received command: %s", cmd.CommandName) + hclog.L().Info("received command: %s", cmd.CommandName) return nil }