add additional debug info about reasons for transfers
This commit is contained in:
parent
e2f1f7afc6
commit
46c9cbeb1e
9 changed files with 43 additions and 31 deletions
|
@ -64,6 +64,13 @@ readLcDirection "upload" = Just Upload
|
|||
readLcDirection "download" = Just Download
|
||||
readLcDirection _ = Nothing
|
||||
|
||||
describeTransfer :: Transfer -> TransferInfo -> String
|
||||
describeTransfer t info = unwords
|
||||
[ show $ transferDirection t
|
||||
, show $ transferUUID t
|
||||
, fromMaybe (key2file $ transferKey t) (associatedFile info)
|
||||
]
|
||||
|
||||
{- Transfers that will accomplish the same task. -}
|
||||
equivilantTransfer :: Transfer -> Transfer -> Bool
|
||||
equivilantTransfer t1 t2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue