diff --git a/pkg/register/plugin_builder.go b/pkg/register/plugin_builder.go index 094f55b..f927dcb 100644 --- a/pkg/register/plugin_builder.go +++ b/pkg/register/plugin_builder.go @@ -14,7 +14,7 @@ type PluginBuilder struct { func NewPluginBuilder(p Plugin) *PluginBuilder { logger := hclog.New(&hclog.LoggerOptions{ - Level: hclog.Info, + Level: hclog.Debug, Output: os.Stderr, JSONFormat: false, }) diff --git a/pkg/register/plugin_register.go b/pkg/register/plugin_register.go index 1ddd178..31b9c34 100644 --- a/pkg/register/plugin_register.go +++ b/pkg/register/plugin_register.go @@ -82,7 +82,7 @@ func (pr *PluginRegisterBuilder) Build(ctx context.Context) (*PluginRegister, er Logger: hclog.New(&hclog.LoggerOptions{ Name: "char", Output: os.Stdout, - Level: hclog.Info, + Level: hclog.Debug, }), Cmd: exec.Command( fmt.Sprintf( diff --git a/plugins/gocli/main.go b/plugins/gocli/main.go index 852db72..b57e57f 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().Error("received command: %s", cmd.CommandName) + hclog.L().Info("received command: %s", cmd.CommandName) return nil } diff --git a/plugins/rust/main.go b/plugins/rust/main.go index 84b4dbc..a915a40 100644 --- a/plugins/rust/main.go +++ b/plugins/rust/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 }