Skip to content

Commit

Permalink
more better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary822 committed Nov 30, 2023
1 parent 78892a8 commit b95b0a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ getMaxPage total page = ceiling (fromIntegral total / fromIntegral (pageLimit pa
runDb :: (MonadIO m) => Database -> Action IO b -> ActionT (App m) b
runDb dbname q = do
pool <- lift $ asks getPool
logger <- lift askLoggerIO

logger <- lift $ katipAddNamespace "runDb" askLoggerIO

liftAndCatchIO
$ recovering
Expand Down

0 comments on commit b95b0a5

Please sign in to comment.