decrease logging verbosity
This commit is contained in:
parent
e12d8ef70a
commit
da579a0756
|
@ -345,7 +345,6 @@ nodeCacheWriter nsSTM =
|
||||||
-- | Periodically iterate through cache, clean up expired entries and verify unverified ones
|
-- | Periodically iterate through cache, clean up expired entries and verify unverified ones
|
||||||
nodeCacheVerifyThread :: LocalNodeStateSTM s -> IO ()
|
nodeCacheVerifyThread :: LocalNodeStateSTM s -> IO ()
|
||||||
nodeCacheVerifyThread nsSTM = forever $ do
|
nodeCacheVerifyThread nsSTM = forever $ do
|
||||||
putStrLn "cache verify run: begin"
|
|
||||||
-- get cache
|
-- get cache
|
||||||
(ns, cache, maxEntryAge) <- atomically $ do
|
(ns, cache, maxEntryAge) <- atomically $ do
|
||||||
ns <- readTVar nsSTM
|
ns <- readTVar nsSTM
|
||||||
|
@ -398,7 +397,6 @@ nodeCacheVerifyThread nsSTM = forever $ do
|
||||||
forkIO $ sendQueryIdMessages targetID latestNs (Just (1 + jEntriesPerSlice latestNs)) (nodesToQuery targetID) >> pure () -- ask for 1 entry more than j because of querying the middle
|
forkIO $ sendQueryIdMessages targetID latestNs (Just (1 + jEntriesPerSlice latestNs)) (nodesToQuery targetID) >> pure () -- ask for 1 entry more than j because of querying the middle
|
||||||
)
|
)
|
||||||
|
|
||||||
putStrLn "cache verify run: end"
|
|
||||||
threadDelay $ fromEnum (maxEntryAge / 20) `div` 10^6 -- convert from pico to milliseconds
|
threadDelay $ fromEnum (maxEntryAge / 20) `div` 10^6 -- convert from pico to milliseconds
|
||||||
|
|
||||||
|
|
||||||
|
@ -465,7 +463,6 @@ stabiliseThread :: Service s (RealNodeSTM s) => LocalNodeStateSTM s -> IO ()
|
||||||
stabiliseThread nsSTM = forever $ do
|
stabiliseThread nsSTM = forever $ do
|
||||||
oldNs <- readTVarIO nsSTM
|
oldNs <- readTVarIO nsSTM
|
||||||
|
|
||||||
putStrLn "stabilise run: begin"
|
|
||||||
|
|
||||||
-- iterate through the same snapshot, collect potential new neighbours
|
-- iterate through the same snapshot, collect potential new neighbours
|
||||||
-- and nodes to be deleted, and modify these changes only at the end of
|
-- and nodes to be deleted, and modify these changes only at the end of
|
||||||
|
@ -544,7 +541,6 @@ stabiliseThread nsSTM = forever $ do
|
||||||
)
|
)
|
||||||
newPredecessor
|
newPredecessor
|
||||||
|
|
||||||
putStrLn "stabilise run: end"
|
|
||||||
stabiliseDelay <- confStabiliseInterval . nodeConfig <$> readTVarIO (parentRealNode newNs)
|
stabiliseDelay <- confStabiliseInterval . nodeConfig <$> readTVarIO (parentRealNode newNs)
|
||||||
threadDelay stabiliseDelay
|
threadDelay stabiliseDelay
|
||||||
where
|
where
|
||||||
|
|
|
@ -673,13 +673,13 @@ fetchTagPosts serv = forever $ do
|
||||||
resp <- try $ HTTP.httpLbs fetchReq (httpMan serv) :: IO (Either HTTP.HttpException (HTTP.Response BSUL.ByteString))
|
resp <- try $ HTTP.httpLbs fetchReq (httpMan serv) :: IO (Either HTTP.HttpException (HTTP.Response BSUL.ByteString))
|
||||||
case resp of
|
case resp of
|
||||||
Right response ->
|
Right response ->
|
||||||
if HTTPT.statusCode (HTTP.responseStatus response) == 200
|
-- TODO error handling, retry
|
||||||
then
|
--if HTTPT.statusCode (HTTP.responseStatus response) == 200
|
||||||
-- success, TODO: statistics
|
-- then
|
||||||
putStrLn "post fetch success"
|
-- -- success, TODO: statistics
|
||||||
else
|
-- putStrLn "post fetch success"
|
||||||
-- TODO error handling, retry
|
-- else
|
||||||
pure ()
|
pure ()
|
||||||
Left _ ->
|
Left _ ->
|
||||||
-- TODO error handling, retry
|
-- TODO error handling, retry
|
||||||
pure ()
|
pure ()
|
||||||
|
@ -817,7 +817,7 @@ evaluateStatsThread serv statsAcc = getPOSIXTime >>= loop
|
||||||
-- format: total relayReceiveRates;total relayDeliveryRates;postFetchRate;postPublishRate
|
-- format: total relayReceiveRates;total relayDeliveryRates;postFetchRate;postPublishRate
|
||||||
-- later: current (reported) load, target load
|
-- later: current (reported) load, target load
|
||||||
TxtI.appendFile (confLogfilePath . serviceConf $ serv) $
|
TxtI.appendFile (confLogfilePath . serviceConf $ serv) $
|
||||||
format ((fixed 20) % ";" % (fixed 20) % ";" % (fixed 20) % ";" % (fixed 20) % "\n")
|
format (fixed 20 % ";" % fixed 20 % ";" % fixed 20 % ";" % fixed 20 % "\n")
|
||||||
(sum . relayReceiveRates $ rateStats)
|
(sum . relayReceiveRates $ rateStats)
|
||||||
(sum . relayDeliveryRates $ rateStats)
|
(sum . relayDeliveryRates $ rateStats)
|
||||||
(postPublishRate rateStats)
|
(postPublishRate rateStats)
|
||||||
|
|
Loading…
Reference in a new issue