Skip to content

Refine and pick a proper log verbosity level for CPI #1469

@zhanggbj

Description

@zhanggbj

What would you like to be added?

While debugging CPI, we noticed some log levels are too small and generate overwhelming logs which is not helpful and noisy. We need to follow that k8s community logging best practice to refine and pick a proper log level for CPI code.

Why is this needed?

For e.g., as default log level is 1, everytime Instance() interface is called, a log is generated as below, we should set it to debug log level like 4.

I0416 08:18:02.863769       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:18:02.864222       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:18:02.865114       1 cloud.go:175] Enabling load balancer support in vsphere paravirtual cloud provider
I0416 08:18:02.968486       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:18:03.076458       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:23:03.150701       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:23:03.280804       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:28:03.394268       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:28:03.526673       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:33:03.624287       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:33:03.750358       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:38:03.866328       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider
I0416 08:38:03.959358       1 cloud.go:182] Enabling Instances interface on vsphere paravirtual cloud provider

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions