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

Make Web Service More Resilient #1

Open
rosskouk opened this issue Aug 20, 2022 · 0 comments
Open

Make Web Service More Resilient #1

rosskouk opened this issue Aug 20, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rosskouk
Copy link
Owner

When a problem track is encountered playback is stopped logs like below are generated:

2022-08-20 10:00:31,323 - werkzeug - INFO - 10.44.17.62 - - [20/Aug/2022 10:00:31] "POST / HTTP/1.1" 200 -
2022-08-20 10:01:09,321 - root - DEBUG - In PlaybackFailedHandler
2022-08-20 10:01:09,321 - root - ERROR - Playback Failed: {'message': 'Device playback error',  'object_type': 'MEDIA_ERROR_INTERNAL_DEVICE_ERROR'}
2022-08-20 10:01:09,322 - werkzeug - INFO - 10.44.17.62 - - [20/Aug/2022 10:01:09] "POST / HTTP/1.1" 200 -
2022-08-20 10:01:09,901 - root - DEBUG - In PlaybackStoppedHandler
2022-08-20 10:01:09,901 - root - DEBUG - Stored track offset of: 44628 ms for Set the Fire to the Third Bar
2022-08-20 10:01:09,901 - root - INFO - Playback stopped

Improve PlaybackFailedHandler by adding the following functionality:

  • Log all information about the current song to assist with troubleshooting / problem identification.
  • Move to the next track
@rosskouk rosskouk added the enhancement New feature or request label Aug 20, 2022
@rosskouk rosskouk self-assigned this Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant