Skip to content

Commit

Permalink
agent: log all queries
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Dec 25, 2024
1 parent bf28902 commit c3ba0bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Simplex/Messaging/Agent/Store/SQLite/DB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ timeIt slow sql a = do
throwIO e
t' <- getCurrentTime
let diff = diffToMilliseconds $ diffUTCTime t' t
when (diff > 1) $ atomically $ TM.alter (updateQueryStats diff) sql slow
-- when (diff > 1) $ atomically $ TM.alter (updateQueryStats diff) sql slow
atomically $ TM.alter (updateQueryStats diff) sql slow
pure r
where
updateQueryErrors :: SomeException -> Maybe SlowQueryStats -> SlowQueryStats
Expand Down

0 comments on commit c3ba0bd

Please sign in to comment.