summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-06-19 12:51:02 -0400
committerAndrew Cady <d@jerkface.net>2018-06-19 12:51:02 -0400
commit12b585d1f712540f70a26095a8c13df554161c47 (patch)
tree49627d973d738482d6427e43bb88a646252036ed /examples
parent365e2cb2dbcaae498df036df8b2a96284f9aecf2 (diff)
move debug prints into Dput
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 19fee119..89604919 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1310,7 +1310,7 @@ newXmmpSink session@(Tox.NCrypto { ncOutgoingQueue = outGoingQVar, ncPacketQueue
1310 OGSuccess -> return OGSuccess 1310 OGSuccess -> return OGSuccess
1311 OGEncodeFail -> return OGEncodeFail 1311 OGEncodeFail -> return OGEncodeFail
1312 when (r == OGEncodeFail) $ 1312 when (r == OGEncodeFail) $
1313 hPutStrLn stderr ("FAILURE to Encode Outgoing: " ++ show msg) 1313 dput XMisc ("FAILURE to Encode Outgoing: " ++ show msg)
1314 sendit session Flush = return () 1314 sendit session Flush = return ()
1315 liftIO $ sendit session flush_cyptomessage 1315 liftIO $ sendit session flush_cyptomessage
1316 1316
@@ -1381,7 +1381,7 @@ main = runResourceT $ liftBaseWith $ \resT -> do
1381 swarms <- Mainline.newSwarmsDatabase 1381 swarms <- Mainline.newSwarmsDatabase
1382 -- Restore peer database before forking the listener thread. 1382 -- Restore peer database before forking the listener thread.
1383 peerdb <- left show <$> tryIOError (L.readFile "bt-peers.dat") 1383 peerdb <- left show <$> tryIOError (L.readFile "bt-peers.dat")
1384 either (hPutStrLn stderr . ("bt-peers.dat: "++)) 1384 either (dput XMisc . ("bt-peers.dat: "++))
1385 (atomically . writeTVar (Mainline.contactInfo swarms)) 1385 (atomically . writeTVar (Mainline.contactInfo swarms))
1386 (peerdb >>= S.decodeLazy) 1386 (peerdb >>= S.decodeLazy)
1387 1387