avoid remotedaemon outputting misc Messages when running
It's a daemon or is communictaing with the assistant over stdio, so should not display checksum messages etc while serving the P2P protocol etc.
This commit is contained in:
parent
0f4ee4f298
commit
1f3ed1b6b2
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,7 @@ import Utility.SimpleProtocol
|
||||||
import Utility.ThreadScheduler
|
import Utility.ThreadScheduler
|
||||||
import Config
|
import Config
|
||||||
import Annex.Ssh
|
import Annex.Ssh
|
||||||
|
import Types.Messages
|
||||||
|
|
||||||
import Control.Concurrent
|
import Control.Concurrent
|
||||||
import Control.Concurrent.Async
|
import Control.Concurrent.Async
|
||||||
|
@ -151,7 +152,9 @@ genTransportHandle :: IO TransportHandle
|
||||||
genTransportHandle = do
|
genTransportHandle = do
|
||||||
annexstate <- newMVar =<< Annex.new =<< Git.CurrentRepo.get
|
annexstate <- newMVar =<< Annex.new =<< Git.CurrentRepo.get
|
||||||
g <- Annex.repo <$> readMVar annexstate
|
g <- Annex.repo <$> readMVar annexstate
|
||||||
return $ TransportHandle (LocalRepo g) annexstate
|
let h = TransportHandle (LocalRepo g) annexstate
|
||||||
|
liftAnnex h $ Annex.setOutput QuietOutput
|
||||||
|
return h
|
||||||
|
|
||||||
updateTransportHandle :: TransportHandle -> IO TransportHandle
|
updateTransportHandle :: TransportHandle -> IO TransportHandle
|
||||||
updateTransportHandle h@(TransportHandle _g annexstate) = do
|
updateTransportHandle h@(TransportHandle _g annexstate) = do
|
||||||
|
|
Loading…
Reference in a new issue