From e1e156e2fe8d5dd911686c130739044253a8d723 Mon Sep 17 00:00:00 2001 From: Nicholas Jones Date: Fri, 12 Jul 2024 18:03:53 +0100 Subject: [PATCH] Add path to log line --- internal/k8s/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/k8s/client.go b/internal/k8s/client.go index 21feb3f..ab06df7 100644 --- a/internal/k8s/client.go +++ b/internal/k8s/client.go @@ -43,7 +43,7 @@ func NewClient(configPath string) (*Client, error) { func (c *Client) GetRawResource(ctx context.Context, relativePath string) (map[string]any, error) { body, err := c.client.RESTClient().Get().AbsPath(path.Join("apis", relativePath)).DoRaw(ctx) if err != nil { - slog.Warn("failed to fetch resource", slog.Any("error", err)) + slog.Warn("failed to fetch resource", slog.Any("error", err), slog.Any("path", path.Join("apis", relativePath))) return nil, err }