summaryrefslogtreecommitdiff
path: root/Assistant/Threads/TransferScanner.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-01 15:23:59 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-01 15:23:59 -0400
commit0fa9ecb7ba54aa719dec810033b5f54ca197bf4e (patch)
treeb1179d1852450e1c7d54a99c03de2c0f9fb629a2 /Assistant/Threads/TransferScanner.hs
parentee19c8c802bec35fe0d3b92b7f065eed819ec38f (diff)
add additional debug info about reasons for transfers
Diffstat (limited to 'Assistant/Threads/TransferScanner.hs')
-rw-r--r--Assistant/Threads/TransferScanner.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Assistant/Threads/TransferScanner.hs b/Assistant/Threads/TransferScanner.hs
index 929fb53e7..198daca94 100644
--- a/Assistant/Threads/TransferScanner.hs
+++ b/Assistant/Threads/TransferScanner.hs
@@ -78,7 +78,7 @@ failedTransferScan r = do
- that the remote doesn't already have the
- key, so it's not redundantly checked here. -}
requeue t info
- requeue t info = queueTransferWhenSmall (associatedFile info) t r
+ requeue t info = queueTransferWhenSmall "retrying failed transfer" (associatedFile info) t r
{- This is a expensive scan through the full git work tree, finding
- files to transfer. The scan is blocked when the transfer queue gets
@@ -108,9 +108,9 @@ expensiveScan rs = unless onlyweb $ do
onlyweb = all (== webUUID) $ map Remote.uuid rs
visiblers = let rs' = filter (not . Remote.readonly) rs
in if null rs' then rs else rs'
- enqueue f (r, t) = do
- debug ["queuing", show t]
- queueTransferWhenSmall (Just f) t r
+ enqueue f (r, t) =
+ queueTransferWhenSmall "expensive scan found missing object"
+ (Just f) t r
findtransfers f (key, _) = do
{- The syncable remotes may have changed since this
- scan began. -}