Skip to content

Commit

Permalink
Add path to log line
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-jones committed Jul 12, 2024
1 parent 4d945af commit e1e156e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e1e156e

Please sign in to comment.