From a6741e717f9f1a6c1a75363bbef4b365d6884447 Mon Sep 17 00:00:00 2001 From: Ritoban Dutta Date: Sun, 1 Mar 2026 06:45:36 +0530 Subject: [PATCH] Convert remaining fmt.Fprintf to slog.Error in load_plugins.go Address review feedback from TerryHowe and gjenkins8: Convert fmt.Fprintf(os.Stderr, ...) on line 66 to slog.Error() for consistent structured logging throughout the file. --- pkg/cmd/load_plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/load_plugins.go b/pkg/cmd/load_plugins.go index f5b863a2f..a700b6702 100644 --- a/pkg/cmd/load_plugins.go +++ b/pkg/cmd/load_plugins.go @@ -63,7 +63,7 @@ func loadCLIPlugins(baseCmd *cobra.Command, out io.Writer) { } found, err := plugin.FindPlugins(dirs, descriptor) if err != nil { - fmt.Fprintf(os.Stderr, "failed to load plugins: %s\n", err) + slog.Error("failed to load plugins", "error", err) return }