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

feat(events) Implement event for repeated crash #229

Merged
merged 2 commits into from
Oct 11, 2021

Conversation

stopostit
Copy link
Contributor

@stopostit stopostit commented Oct 11, 2021

@stopostit stopostit requested a review from EtienneM October 11, 2021 13:27
Copy link
Member

@EtienneM EtienneM left a 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)
Copy link
Member

Choose a reason for hiding this comment

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

typo:

Suggested change
* 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)

@@ -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)
Copy link
Member

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:

Suggested change
msg := fmt.Sprintf("container '%v' has crashed repeatedly", ev.TypeData.ContainerType)
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType)

}

func (ev *EventRepeatedCrashType) String() string {
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
msg := fmt.Sprintf("container '%v' has crashed", ev.TypeData.ContainerType)
msg := fmt.Sprintf("container '%v' has crashed repeatedly", ev.TypeData.ContainerType)

@stopostit stopostit force-pushed the feat/682/event_repeated_crash branch from a4bde5f to bfc2700 Compare October 11, 2021 14:13
@stopostit stopostit requested a review from EtienneM October 11, 2021 14:32
CHANGELOG.md Outdated Show resolved Hide resolved
@stopostit stopostit force-pushed the feat/682/event_repeated_crash branch from a48c22d to 941364a Compare October 11, 2021 14:34
@stopostit stopostit requested a review from EtienneM October 11, 2021 14:34
CHANGELOG.md Outdated Show resolved Hide resolved
@stopostit stopostit merged commit eec7a77 into master Oct 11, 2021
@stopostit stopostit deleted the feat/682/event_repeated_crash branch October 11, 2021 14:47
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.

[events] Add support for repeated_crash
2 participants