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

πŸ› Bug Report β€” Logging broken in hibernatable WebSocket event handlers #2089

Open
codefrau opened this issue May 5, 2024 · 0 comments

Comments

@codefrau
Copy link

codefrau commented May 5, 2024

We have one DurableObject that uses the hibernation API. It implements webSocketMessage() in which we use console.log() to log stuff.

On miniflare (wrangler dev) that works perfectly fine, the logs appear in the terminal, as they should.

When deployed to Cloudflare though, nothing is logged from within the webSocketMessage() handler. The handler method with the log statement is executed and works fine.

This happens both with wrangler tail, as well as our log push job to an R2 bucket. All other log calls work fine.

I added a workaround where for that DO we additionally send every log message to another DO and log it there. That works.

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

No branches or pull requests

1 participant