summaryrefslogtreecommitdiff
path: root/src/Control
diff options
context:
space:
mode:
authorjim@bo <jim@bo>2018-06-20 22:40:37 -0400
committerjim@bo <jim@bo>2018-06-20 22:43:47 -0400
commit825962518c6ad00279fc23e8e1dec746980e483f (patch)
tree68c135bdffd879835c48cce3d397e8edf99b53f4 /src/Control
parent09aa079fbab069f177e08b5239bf684d312eb00a (diff)
More DPut stuff
* verbose/quiet without args shows report * verbose all - sets all tags verbose * quiet all - sets all tags quiet * XMisc defaults to verbose, everything else quiet * new XMan tag for ToxManager related stuff * s/hputStrLn stderr/dput XMisc/ in daemon code
Diffstat (limited to 'src/Control')
-rw-r--r--src/Control/Concurrent/Lifted/Instrument.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Control/Concurrent/Lifted/Instrument.hs b/src/Control/Concurrent/Lifted/Instrument.hs
index 5b3237cc..187b9276 100644
--- a/src/Control/Concurrent/Lifted/Instrument.hs
+++ b/src/Control/Concurrent/Lifted/Instrument.hs
@@ -22,6 +22,7 @@ import Data.Time()
22import Data.Time.Clock 22import Data.Time.Clock
23import System.IO 23import System.IO
24import Control.Monad.IO.Class 24import Control.Monad.IO.Class
25import DPut
25 26
26 27
27data PerThread = PerThread 28data PerThread = PerThread
@@ -38,7 +39,7 @@ data GlobalState = GlobalState
38globals :: MVar GlobalState 39globals :: MVar GlobalState
39globals = unsafePerformIO $ newMVar $ GlobalState 40globals = unsafePerformIO $ newMVar $ GlobalState
40 { threads = Map.empty 41 { threads = Map.empty
41 , reportException = hPutStrLn stderr 42 , reportException = dput XMisc
42 } 43 }
43{-# NOINLINE globals #-} 44{-# NOINLINE globals #-}
44 45