Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor loglevel based on debug in configmap #265

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

zhengxiexie
Copy link
Contributor

@zhengxiexie zhengxiexie commented Aug 9, 2023

This PR is to fix Issue: #245

We hold these truths to be self-evident:
log.info -> info, log.v(1).info -> debug, log.error-> error, log.v(2).info-> develop level log

If config.Debug=true, then loglevel=1, if command is passed in loglevel and greater than debug loglevel, then the loglevel is overridden.

pkg/config/config.go Outdated Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
pkg/config/config.go Show resolved Hide resolved
We hold these truths to be self-evident:
log.info -> info, log.v(1).info -> debug, log.error-> error, log.v(2).info-> develop level log

If config.Debug=true, then loglevel=1, if command is passed in loglevel and greater than debug loglevel,
then the loglevel is overridden.
Use another log in config.go.
@zhengxiexie zhengxiexie merged commit ba8e7d0 into vmware-tanzu:main Sep 4, 2023
1 check passed
zhengxiexie added a commit that referenced this pull request Sep 4, 2023
Refactor loglevel based on debug in configmap(#265)
zhengxiexie added a commit that referenced this pull request Sep 4, 2023
Refactor loglevel based on debug in configmap(#265)
TaoZou1 added a commit that referenced this pull request Dec 12, 2023
Revert "Refactor loglevel based on debug in configmap(#265)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants