kubecost / kubectl-cost

CLI for determining the cost of Kubernetes workloads
Apache License 2.0
876 stars 55 forks source link

Make log level configurable #118

Closed michaelmdresser closed 2 years ago

michaelmdresser commented 2 years ago

What does this PR change?

Makes the log level configurable with the new init helper function in OpenCost's log package.

Does this PR rely on any other PRs?

How does this PR impact users? (This is the kind of thing that goes in release notes!)

Makes the log level configurable with a new flag: --log-level.

How was this PR tested?

By adding test log statements and configuring the log level with the new flag.

michaelmdresser commented 2 years ago

CI will fail until the opencost PR merges and the go.mod is updated to reflect that for this PR.