Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: log all queries
Browse files Browse the repository at this point in the history
epoberezkin committed Dec 25, 2024

Verified

This commit was signed with the committer’s verified signature.
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
@@ -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

0 comments on commit c3ba0bd

Please sign in to comment.