In a Phoenix app in development mode, when a request goes through a controller, it appears in the logs. This is especially useful with an SPA that makes multiple requests from a certain view/page. I can go through the log and see which controllers were called.
I have an app that uses Endpoint.broadcast
to send messages to the frontend from multiple places in the backend. I would like to know if there’s a configuration, and/or easy way to ensure, while only in development, that a broadcast is logged so I can see what may have caused the SPA to update from the backend.
Thank you for any help or advice