haskell-hvr / hslogger

Logging framework for Haskell
https://hackage.haskell.org/package/hslogger
BSD 3-Clause "New" or "Revised" License
64 stars 36 forks source link

exception handling fix #45

Closed zoranbosnjak closed 6 years ago

zoranbosnjak commented 6 years ago

Fix improper use of "catch" function. It does not suppose to catch all exception in this case. For example, the "ThreadKilled" exception during "catch" call did not stop the thread.

Using "tryJust" to catch only particular exception instead.