How my boss made InternalServerErrors disappear
He didn’t do this:
try { // entire app } catch (t: Throwable) { t.printStackTrace() } He did this:
try { // entire app } catch (t: Throwable) { val developerEmails = listOf("dev1@gmail.com", "dev2@gmail.com") emailTransport.sendEmail(developerEmails, e.message, e.stackTraceToString()) throw t } Whenever an unexpected error occurs, everyone on the team gets an email about it. We would go into the office, see a bunch of these error emails and then talk about them in the morning standup. Usually they were fixed that day.
Bank Statement Converter Blog