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

Ranch translator: crash_reason should be a two-element tuple #102

Conversation

shaharz
Copy link
Contributor

@shaharz shaharz commented Sep 9, 2024

To the best of my understanding, the expectation is for this to be true in all cases https://github.com/elixir-lang/elixir/blob/5137c33098a2413649bd77cb2e634d00972fde7b/lib/logger/lib/logger.ex#L130-L131

However, this wasn't the case for the linked task handler. The logger_json GoogleCloud formatter pattern matches on this tuple https://github.com/Nebo15/logger_json/blob/5ad0deed1be98e04a00ae1357f1314ca990ffebf/lib/logger_json/formatters/google_cloud.ex#L191 which is how we found out.

@josevalim josevalim closed this Sep 9, 2024
@josevalim josevalim reopened this Sep 9, 2024
@josevalim josevalim merged commit 77a16d4 into elixir-plug:master Sep 9, 2024
1 of 4 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@shaharz shaharz deleted the ranch-linked-termination-return-stacktrace branch September 10, 2024 08:36
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