> we of course have no idea what actually happened since the default logging is only enabled during development
Wait, if you have issues with logging, why don’t you set up opentelemetry? It’s really easy to add into a project [1], and if you don’t want to manage it, you can easily find some cost efficient solutions like Grafana Labs [2].
[1]: https://nextjs.org/docs/app/guides/open-telemetry
[2]: https://grafana.com/
this is a fantastic, state of the art way of “now we have two problems”, i can say unequivocally from my own experience.
OT might be too heavy of a hammer depending on what OP needs.