It4innovations / hyperqueue

Scheduler for sub-node tasks for HPC systems with batch scheduling
https://it4innovations.github.io/hyperqueue
MIT License
266 stars 20 forks source link

Disable stack traces for normal errors in release mode #687

Closed Kobzol closed 3 months ago

Kobzol commented 3 months ago

Since the recent panic/debuginfo/stacktrace changes, HQ has been printing a stacktrace even when a normal error was propagated back to main, not just for panics. That is quite annoying to users, and we should just not do that in release mode (also because of performance, although that's probably not that important in this case, as errors should be rare).