-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Merged
bharathi-tenneti
merged 19 commits into
operator-framework:master
from
bharathi-tenneti:watches-go
Dec 9, 2019
+18
−13
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
86981e0
Changed log.info to tidy up using fmt.sprintf
894f3cf
maxWorkers logic added for log.info
9b9bce9
removed commented code
3d06649
Changed log.info to tidy up using fmt.sprintf
2fed3b3
leader election bugfix: Delete evicted leader pods (#2210)
asmacdo d34bf29
feat(linter) : add goconst check and fix issues (#2236)
camilamacedo86 681e441
maxWorkers logic added for log.info
bd4d60a
logic added
d3870fd
2246 PR log addedin CHANGELOG file
c0d9b5a
Merge branch 'watches-go' of github.com:bharathi-tenneti/operator-sdk…
cc4ef7c
Rebased to master
e2fc799
Added getIntegerEnvWithDefault func
fa18fa6
Added CHANGELOG comment for PR2246
155020f
Restored Go.mod with upstream
24d80f5
Removed empty lines, ok==false changed
10fae31
Restored go.mod, and go.sum
59819b5
Fixed case for Log messages
f2c7fd3
Ran make format
d906611
maxWorkers<=0 check added
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
logic added
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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?