Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Changed log.info to tidy up using fmt.sprintf #2246
Changed log.info to tidy up using fmt.sprintf #2246
Changes from 10 commits
86981e0
894f3cf
9b9bce9
3d06649
2fed3b3
d34bf29
681e441
bd4d60a
d3870fd
c0d9b5a
cc4ef7c
e2fc799
fa18fa6
155020f
24d80f5
10fae31
59819b5
f2c7fd3
d906611
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required revert the changes in the go.mod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be wrong, but I think @camilamacedo86 was suggesting that we should log a separate message if we use the default when the environment variable is not set. I would also suggest we follow the structured logging conventions of the logr.Logger.
So here, we can use the following since we have encountered an error trying to parse the string as an integer.
For @camilamacedo86's suggestion, if we do the
os.LookupEnv()
andok == false
, that means the environment variable was not set. In think in that case, we could log this message:@camilamacedo86 @jmrodri @bharathi-tenneti WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the same logic for the ansible verbosity operator.
Since the logic is identical, I think it would make sense to define a new function with this signature:
The call it for both
maxWorkers
andansibleVerbosity
.