Revert "Revert "Extra debugging for file sync hangs on slow connections""

This reverts commit 49074897078f0f0d0a49f21dc1264b10339139b7.
Revert "Remove debug line"

This reverts commit a2249b9bee91a56c4ed30f2c2b776b88d33cbba0.