Skip to content

Instantly share code, notes, and snippets.

@magnars
Created March 1, 2017 09:29
Show Gist options
  • Save magnars/f15a6586cc0101733e7efb4289e62683 to your computer and use it in GitHub Desktop.
Save magnars/f15a6586cc0101733e7efb4289e62683 to your computer and use it in GitHub Desktop.
(Thread/setDefaultUncaughtExceptionHandler
(reify Thread$UncaughtExceptionHandler
(uncaughtException [_ thread ex]
(log/error ex "Uncaught exception on" (.getName thread)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment