File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
trace-forward/src/Trace/Forward Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -140,13 +140,13 @@ initForwardingDelayed iomgr config magic ekgStore tracerSocketMode = liftIO $ do
140
140
-- It writes an error message on stderr
141
141
handleOverflow :: [TraceObject ] -> IO ()
142
142
handleOverflow [] = pure ()
143
- handleOverflow msgs =
144
- let lengthM = length msgs
145
- beginning = toTimestamp ( head msgs)
146
- end = toTimestamp (last msgs)
147
- msg = " TraceObject queue overflowed. Dropped " <> show lengthM <>
143
+ handleOverflow (msg : msgs) =
144
+ let lengthM = 1 + length msgs
145
+ beginning = toTimestamp msg
146
+ end = toTimestamp (last (msg : msgs) )
147
+ str = " TraceObject queue overflowed. Dropped " <> show lengthM <>
148
148
" messages from " <> show beginning <> " to " <> show end
149
- in hPutStrLn stderr msg
149
+ in hPutStrLn stderr str
150
150
151
151
launchForwarders
152
152
:: IOManager
You can’t perform that action at this time.
0 commit comments