-
Notifications
You must be signed in to change notification settings - Fork 78
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
Revise log messages along with the coding guideline #504
Conversation
Best reviewed: commit by commit
Optimal code review plan (1 warning)
|
Codecov Report
@@ Coverage Diff @@
## master #504 +/- ##
=========================================
+ Coverage 9.13% 9.15% +0.02%
=========================================
Files 402 402
Lines 20852 20848 -4
=========================================
+ Hits 1905 1909 +4
+ Misses 18694 18686 -8
Partials 253 253
Continue to review full report at Codecov.
|
e3d6d06
to
406d981
Compare
b2f6306
to
07a85f5
Compare
@@ -187,7 +187,7 @@ func WithListenConfig(lc *net.ListenConfig) Option { | |||
} | |||
} | |||
|
|||
func WithServerMode(m mode) Option { | |||
func WithServerMode(m ServerMode) Option { |
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.
[golangci] reported by reviewdog 🐶
exported function WithServerMode
should have comment or be unexported (golint)
@@ -44,15 +44,15 @@ type Server interface { | |||
Shutdown(context.Context) error | |||
} | |||
|
|||
type mode uint8 | |||
type ServerMode uint8 |
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.
[golangci] reported by reviewdog 🐶
exported type ServerMode
should have comment or be unexported (golint)
|
||
const ( | ||
REST mode = 1 + iota | ||
REST ServerMode = 1 + iota |
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.
[golangci] reported by reviewdog 🐶
exported const REST should have comment (or a comment on this block) or be unexported (golint)
/rebase |
[REBASE] Rebase triggered by rinx for branch: refactor/internal-pkgs/revise-log-messages |
07a85f5
to
32b2024
Compare
[FORMAT] Updating license headers and formatting go codes triggered by rinx. |
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.
LGTM
/rebase |
[REBASE] Rebase triggered by kpango for branch: refactor/internal-pkgs/revise-log-messages |
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
… error Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
32b2024
to
4da515a
Compare
[FORMAT] Updating license headers and formatting go codes triggered by kpango. |
* 🔊 Revise log messages Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com> * 🚨 Fix the problems pointed by deepsource go Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com> * 🥅 handling 'uncommitted index not found' error as failed precondition error Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com> * 🔇 remove useless stacktraces Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com> Co-authored-by: Yusuke Kato <i.can.feel.gravity@gmail.com>
Signed-off-by: Rintaro Okamura rintaro.okamura@gmail.com
Description:
Revise log messages and levels along with the coding guideline.
index managers now ignore precondition error from agents. (just printing debug logs)
also fixed several anti-patterns pointed by deepsource.
Related Issue:
nothing.
How Has This Been Tested?:
nothing.
Environment:
Types of changes:
Changes to Core Features:
Checklist: