-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(events) Implement event for repeated crash #229
Conversation
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.
Just a typo to fix, otherwise LGTM
CHANGELOG.md
Outdated
@@ -4,6 +4,7 @@ | |||
|
|||
* build(deps): bump github.com/golang-jwt/jwt/v4 from 4.0.0 to 4.1.0 [#225](https://github.com/Scalingo/go-scalingo/pull/225) | |||
* chore: use jwt.RegistredClaims instead of jwt.StandardClaims [#227](https://github.com/Scalingo/go-scalingo/pull/227) | |||
* feat(events) Implement event for repeated crash [#229](https://github.com/Scalingo/go-scalingo/pull/227) |
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.
typo:
* feat(events) Implement event for repeated crash [#229](https://github.com/Scalingo/go-scalingo/pull/227) | |
* feat(events): Implement event for repeated crash [#229](https://github.com/Scalingo/go-scalingo/pull/229) |
events_structs.go
Outdated
@@ -283,7 +284,7 @@ type EventCrashType struct { | |||
} | |||
|
|||
func (ev *EventCrashType) String() string { | |||
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType) | |||
msg := fmt.Sprintf("container '%v' has crashed repeatedly", ev.TypeData.ContainerType) |
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 you confused the crashed
and repeated_crash
event:
msg := fmt.Sprintf("container '%v' has crashed repeatedly", ev.TypeData.ContainerType) | |
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType) |
events_structs.go
Outdated
} | ||
|
||
func (ev *EventRepeatedCrashType) String() string { | ||
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType) |
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.
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType) | |
msg := fmt.Sprintf("container '%v' has crashed repeatedly", ev.TypeData.ContainerType) |
a4bde5f
to
bfc2700
Compare
a48c22d
to
941364a
Compare
Fix Scalingo/cli#682