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

Add debug logging for most commands #188

Merged
merged 3 commits into from
Oct 28, 2021

Conversation

julienduchesne
Copy link
Member

While debugging a failing apply, I thought some debug logging would be helpful
This is very verbose for normal usecases so I also added a --log-level option to all commands to toggle the debug logging

@julienduchesne julienduchesne requested review from malcolmholmes and a team October 27, 2021 15:27
Copy link
Collaborator

@malcolmholmes malcolmholmes left a comment

Choose a reason for hiding this comment

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

I've been thinking about doing something like this. This is extremely helpful. Thanks!

Could we, though, add the logging option configuration somehow to defaultGrizzlyFlags? I can imagine scenarios where we have other flags that need initialising too, so wrapping each xxxCmd() function could get problematic.

Base automatically changed from julienduchesne/ioutil-deprecated to master October 28, 2021 11:29
While debugging a failing apply, I thought some debug logging would be helpful
This is very verbose for normal usecases so I also added a `--log-level` option to all commands to toggle the debug logging
@julienduchesne julienduchesne force-pushed the julienduchesne/add-debug-logging branch 3 times, most recently from 25ea783 to 210b972 Compare October 28, 2021 12:54
@julienduchesne
Copy link
Member Author

I've been thinking about doing something like this. This is extremely helpful. Thanks!

Could we, though, add the logging option configuration somehow to defaultGrizzlyFlags? I can imagine scenarios where we have other flags that need initialising too, so wrapping each xxxCmd() function could get problematic.

Done!

Copy link
Collaborator

@malcolmholmes malcolmholmes left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@julienduchesne julienduchesne merged commit 46e33f4 into master Oct 28, 2021
@julienduchesne julienduchesne deleted the julienduchesne/add-debug-logging branch October 28, 2021 14:15
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

3 participants