Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

[release-0.12] UC: raise logging level for some log messages #4517

Merged
merged 3 commits into from
May 12, 2022

Conversation

stmcginnis
Copy link
Contributor

What this PR does / why we need it

In order to hide some log output when used in the Docker Desktop extension, this
raises the log level of some of the messages referring to local paths so they can be
skipped at a lower verbosity level in the extension.

This raises the level of some local path and other unmanaged cluster
output that we don't want emitted by default for the Docker Desktop
integration. It also raises the default verbosity of commands so even
though these are logging at a higher level, they will still be printed
in a normal run.

This allows the Docker Desktop integration to explicitly run these calls
with a lower verbosity and not include the messages.

Signed-off-by: Sean McGinnis <smcginnis@vmware.com>
(cherry picked from commit c1d8e96)
On cluster creation we print out steps explaining how to delete the
cluster. This raises the log level on those messages so they are not
printed when verbosity is set lower so things like the Docker Desktop
integration where the default instructions do not apply.

Signed-off-by: Sean McGinnis <smcginnis@vmware.com>
(cherry picked from commit 416728b)
There were issues with the way log verbosity was being set which caused
the incorrect level to be used, resulting in some expected lines not
printing at the default log level.

This updates the handling to correctly parse and set the level from the
flag. Also some minor refactoring to make it a little easier to
understand.

Signed-off-by: Sean McGinnis <smcginnis@vmware.com>
(cherry picked from commit e8d6612)
@stmcginnis stmcginnis requested a review from a team as a code owner May 12, 2022 18:52
@stmcginnis stmcginnis changed the title UC: raise logging level for some log messages [release-0.12] UC: raise logging level for some log messages May 12, 2022
@stmcginnis stmcginnis merged commit 7e0c6f3 into vmware-tanzu:release-0.12 May 12, 2022
@stmcginnis stmcginnis deleted the uc-logging-bp branch May 12, 2022 19:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants