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

Initialize the logger in Main only after the CLI parameters have bee parsed #1413

Merged

Conversation

paul-dingemans
Copy link
Collaborator

Description

Initialize the logger in Main only after the CLI parameters have bee parsed parsed. Also, propagate the log level correctly to the KLogger.

Closes #1412

Checklist

  • PR description added
  • tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • README.md is updated
  • Rule has been applied on Ktlint itself and violations are fixed

… parsed. Also, propagate the log level correctly to the KLogger.

Closes pinterest#1412
@paul-dingemans paul-dingemans merged commit 6428c7d into pinterest:master Mar 16, 2022
@paul-dingemans paul-dingemans deleted the 1412-default-log-level branch March 16, 2022 20:43
@paul-dingemans paul-dingemans added this to the 0.45.0 milestone Mar 16, 2022
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.

Is there a way to disable DEBUG logs that get printed at the start?
1 participant