easzlab / kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
https://github.com/easzlab/kubeasz
10.53k stars 3.53k forks source link

style: trim trailing whitespace & add logger source line number #1413

Closed kelein closed 3 weeks ago

kelein commented 1 month ago

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

  1. trim trailing whitespace
  2. logger func add source line number like this which help user locate souce code and more colorful output
image

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

Does this PR introduce a user-facing change?

N/A

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

N/A

gjmzj commented 3 weeks ago

thanks