icepeak-0.7.3.0: A fast JSON document store with push notification support.

Safe HaskellNone
LanguageHaskell2010

SentryLogging

Description

Module for logging (crash) reports to Sentry

Synopsis

Documentation

getCrashLogger :: String -> IO SentryService Source #

Returns a Maybe SentryService which can be used to send error information to Sentry. Return value is Nothing is the environment variable SENTRY_DSN is not set.

logCrashMessage :: String -> SentryService -> String -> IO () Source #

Send a crash message to Sentry, used in cases when no exception is available, Which is the case for Scotty errors. Function does nothing when Sentry service is Nothing.