grafana / unused

CLI tool, Prometheus exporter, and Go module to list your unused disks in all cloud providers
Apache License 2.0
52 stars 1 forks source link

Log error when parsing GCP disk with non-JSON description #43

Closed inkel closed 1 year ago

inkel commented 1 year ago

As reported in #41 when trying to parse the Description field as JSON it was returning an error if it failed, blocking the programs to continue listing the unused disks. This PR pass down a logger (logfmt.Logger more specifically) and emits a log line instead of returning an error.