diff options
-rw-r--r-- | examples/dhtd.hs | 2 | ||||
-rw-r--r-- | src/DPut.hs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index 35035372..19fee119 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -1387,6 +1387,8 @@ main = runResourceT $ liftBaseWith $ \resT -> do | |||
1387 | 1387 | ||
1388 | announcer <- forkAnnouncer | 1388 | announcer <- forkAnnouncer |
1389 | 1389 | ||
1390 | -- Default: quiet all tags. | ||
1391 | forM [minBound .. maxBound] setQuiet | ||
1390 | 1392 | ||
1391 | (quitBt,btdhts,btips,baddrs) <- case portbt opts of | 1393 | (quitBt,btdhts,btips,baddrs) <- case portbt opts of |
1392 | "" -> return (return (), Map.empty,return [],[]) | 1394 | "" -> return (return (), Map.empty,return [],[]) |
diff --git a/src/DPut.hs b/src/DPut.hs index 482db515..dc699e76 100644 --- a/src/DPut.hs +++ b/src/DPut.hs | |||
@@ -7,7 +7,7 @@ import Data.Maybe | |||
7 | import System.IO.Unsafe (unsafePerformIO) | 7 | import System.IO.Unsafe (unsafePerformIO) |
8 | 8 | ||
9 | data DebugTag = XAnnounce | XDHT | XOnion | XNetCrypto | XPing | XLan | XMisc | 9 | data DebugTag = XAnnounce | XDHT | XOnion | XNetCrypto | XPing | XLan | XMisc |
10 | deriving (Eq,Ord,Show,Read) | 10 | deriving (Eq,Ord,Show,Read,Enum,Bounded) |
11 | 11 | ||
12 | {-# NOINLINE verbosityMap #-} | 12 | {-# NOINLINE verbosityMap #-} |
13 | verbosityMap :: TVar (Map.Map DebugTag Bool) | 13 | verbosityMap :: TVar (Map.Map DebugTag Bool) |