Logging stack trace on game crash

I thought it might be a good idea to log exception details and the stack trace when an unhandled exception is thrown in my game, so that if users ever experience any crashes, they’ll be able to provide me with something more helpful to diagnose the problem than “the game crashed when I started it.”

Other places on the internet claim that exposing a stack trace to users is a security vulnerability, but is that really even relevant when it comes to a video game?

For anyone who has published a game, did you do any sort of logging when crashes occur?