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

Add logging about reason for not generating an MP4 #1335

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

thomshutt
Copy link
Contributor

Currently there's no way of distinguishing between the different reasons when MP4 generation doesn't happen and so this extra logging means we will now always be able to differentiate.

Copy link

linear bot commented Jul 22, 2024

@thomshutt thomshutt requested a review from leszko July 22, 2024 11:03
si.SignedSourceURL = signedNewSourceURL // http(s) URL used by mediaconvert
log.AddContext(p.RequestID, "signed_url", si.SignedSourceURL)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactor: Moved these to line up with the places where we get the info

}

return false
return true, ""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Flipped the logic to make it more of a standard Golang flow of error checking and then success

Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

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

👍

@thomshutt thomshutt merged commit ac17b28 into main Jul 22, 2024
11 checks passed
@thomshutt thomshutt deleted the thom/ps-670-no-mp4-available-for-uploaded-asset branch July 22, 2024 12:59
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.

2 participants