File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
share-api/src/Share/BackgroundJobs/Diffs Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,15 @@ processDiff authZReceipt unisonRuntime = Trace.withSpan "background:causal-diffs
5757 DQ. claimCausalDiff >>= \ case
5858 Nothing -> pure Nothing
5959 Just causalDiffInfo -> withTags (causalDiffTags causalDiffInfo) do
60+ Logging. textLog (" Computing causal diff: " <> tShow causalDiffInfo)
61+ & Logging. withSeverity Logging. Info
62+ & Logging. logMsg
6063 PG. transactionUnsafeIO $ UnliftIO. tryPutMVar pendingCausalDiffVar causalDiffInfo
6164 startTime <- PG. transactionUnsafeIO (Clock. getTime Clock. Monotonic )
6265 result <- PG. catchTransaction (maybeComputeAndStoreCausalDiff authZReceipt unisonRuntime causalDiffInfo)
66+ Logging. textLog (" Finished causal diff: " <> tShow causalDiffInfo)
67+ & Logging. withSeverity Logging. Info
68+ & Logging. logMsg
6369 DQ. deleteClaimedCausalDiff causalDiffInfo
6470 pure (Just (causalDiffInfo, startTime, result))
6571 case result of
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ data CausalDiffInfo = CausalDiffInfo
99 toCausalId :: CausalId ,
1010 fromCodebaseOwner :: UserId ,
1111 toCodebaseOwner :: UserId
12- }
12+ } deriving ( Eq , Show )
1313
1414instance PG. DecodeRow CausalDiffInfo where
1515 decodeRow =
You can’t perform that action at this time.
0 commit comments