cardano-submit-api-3.2.1: A web server that allows transactions to be POSTed to the cardano chain
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.TxSubmit.Util

Synopsis

Documentation

logException :: Trace IO Text -> Text -> IO a -> IO a Source #

ouroboros-network catches SomeException and if a nullTracer is passed into that code, the caught exception will not be logged. Therefore wrap all tx submission code that is called from network with an exception logger so at least the exception will be logged (instead of silently swallowed) and then rethrown.