diff options
author | jim@bo <jim@bo> | 2018-06-20 22:40:37 -0400 |
---|---|---|
committer | jim@bo <jim@bo> | 2018-06-20 22:43:47 -0400 |
commit | 825962518c6ad00279fc23e8e1dec746980e483f (patch) | |
tree | 68c135bdffd879835c48cce3d397e8edf99b53f4 /src/Control/Concurrent | |
parent | 09aa079fbab069f177e08b5239bf684d312eb00a (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/Concurrent')
-rw-r--r-- | src/Control/Concurrent/Lifted/Instrument.hs | 3 |
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() | |||
22 | import Data.Time.Clock | 22 | import Data.Time.Clock |
23 | import System.IO | 23 | import System.IO |
24 | import Control.Monad.IO.Class | 24 | import Control.Monad.IO.Class |
25 | import DPut | ||
25 | 26 | ||
26 | 27 | ||
27 | data PerThread = PerThread | 28 | data PerThread = PerThread |
@@ -38,7 +39,7 @@ data GlobalState = GlobalState | |||
38 | globals :: MVar GlobalState | 39 | globals :: MVar GlobalState |
39 | globals = unsafePerformIO $ newMVar $ GlobalState | 40 | globals = 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 | ||