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

improvement(logger): some minor fixes #5475

Merged
merged 1 commit into from Nov 24, 2023
Merged

improvement(logger): some minor fixes #5475

merged 1 commit into from Nov 24, 2023

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Nov 23, 2023

What this PR does / why we need it:

From commit message:

improvement(logger): some minor fixes

Namely:

  • Setting logs for some built-in providers to debug because that's just
    more fitting
  • Do not print new line after resolving providers and graph. Doesn't
    render nicely.
  • Add an "init" log context for the Garden class that logs when Garden
    has been initialized with duration for non-dev commands.
  • Print link to Cloud at end of command run as well
  • DO NOT log outdated statuses at a "warning" level
  • Other minor tweaks

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

I know these keep raining in. My apologies. They're not super urgent per se and just small tweaks as I bump into more and more things while doing some content work.

I tend to push them immediately to keep my own content branch sane and rebased.

const verboseLogProviders = ["templated", "container"]
const fixLevel = verboseLogProviders.includes(providerName) ? LogLevel.verbose : undefined
const debugLogProviders = ["templated", "container"]
const fixLevel = debugLogProviders.includes(providerName) ? LogLevel.silly : undefined
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be LogLevel.debug instead of LogLevel.silly?

@eysi09 eysi09 marked this pull request as draft November 23, 2023 15:54
@eysi09 eysi09 force-pushed the more-log-tweaks branch 2 times, most recently from e76a5d9 to b0f3f2c Compare November 23, 2023 20:46
Namely:
- Setting logs for some built-in providers to debug because that's just
  more fitting
- Do not print new line after resolving providers and graph. Doesn't
  render nicely.
- Add an "init" log context for the Garden class that logs when Garden
  has been initialized with duration for non-dev commands.
- Print link to Cloud at end of command run as well
- DO NOT log outdated statuses at a "warning" level
- Other minor tweaks
@eysi09 eysi09 marked this pull request as ready for review November 23, 2023 21:04
@vvagaytsev vvagaytsev added this pull request to the merge queue Nov 24, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 24, 2023
@vvagaytsev vvagaytsev added this pull request to the merge queue Nov 24, 2023
Merged via the queue into main with commit b128803 Nov 24, 2023
45 checks passed
@vvagaytsev vvagaytsev deleted the more-log-tweaks branch November 24, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants