Skip to content

Commit e1e156e

Browse files
committed
Add path to log line
1 parent 4d945af commit e1e156e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/k8s/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewClient(configPath string) (*Client, error) {
4343
func (c *Client) GetRawResource(ctx context.Context, relativePath string) (map[string]any, error) {
4444
body, err := c.client.RESTClient().Get().AbsPath(path.Join("apis", relativePath)).DoRaw(ctx)
4545
if err != nil {
46-
slog.Warn("failed to fetch resource", slog.Any("error", err))
46+
slog.Warn("failed to fetch resource", slog.Any("error", err), slog.Any("path", path.Join("apis", relativePath)))
4747
return nil, err
4848
}
4949

0 commit comments

Comments
 (0)