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

Capture and log error on webserver crash #1759

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

AlexMapley
Copy link
Contributor

@AlexMapley AlexMapley commented Feb 10, 2021

What does this pull request do? Explain your changes. (required)
I wrote up some more info on this problem in #1758.

We're running into some issues in v0.5.14 with the webserver silently crashing, and figured having the underlying error logged would help a lot with usability.

Specific updates (required)

How did you test each of these updates (required)
I didn't test these, the change is small enough I assume it should work alright.
Up to the livepeer devs if they think this is reasonable, or if I should do some more testing myself.

Here's an example 20 lines down where we use this same pattern: https://github.com/livepeer/go-livepeer/blob/master/server/webserver.go#L92-L93

Does this pull request close any open issues?

#1758

Checklist:

  • README and other documentation updated
  • Node runs in OSX and devenv
  • All tests in ./test.sh pass

I skipped over these as well^, am so used to running livepeer in alpine linux I'll admit I'm not too versed manually building for this binary for OSX.
I can follow through with these steps if we'd like, just let me know!

Didn't see any relevant documentation that we'd want to update for this.

@AlexMapley
Copy link
Contributor Author

cc @yondonfu, following up from discord.

If you want me to test this branch out a bit more that's okay, just lmk.

@yondonfu yondonfu self-requested a review February 11, 2021 01:08
Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks @AlexMapley!

@yondonfu yondonfu merged commit f47f99c into livepeer:master Feb 11, 2021
@BisonAl
Copy link

BisonAl commented Feb 11, 2021

Wooooo thanks @yondonfu!

Hoping to see the livepeer team soon once lockdown ends

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.

None yet

3 participants