Skip to content

Commit

Permalink
minor improvements: remove info-level logging for ServerContext which…
Browse files Browse the repository at this point in the history
… may be sensitive (#1802)
  • Loading branch information
4eUeP committed Apr 26, 2024
1 parent eb5f4e2 commit 128261e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hstream/app/lib/KafkaServer.hs
Expand Up @@ -4,7 +4,6 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedRecordDot #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
Expand Down Expand Up @@ -78,7 +77,6 @@ runApp = do

app :: ServerOpts -> IO ()
app config@ServerOpts{..} = do
Log.info $ "start server with opts: " <> Log.build (show config)
setupFatalSignalHandler
S.setLogDeviceDbgLevel' _ldLogLevel
let logType = case config.serverFileLog of
Expand Down Expand Up @@ -253,5 +251,5 @@ serveListeners sc netOpts
nodeChangeEventHandler
:: MVar ServerContext -> Gossip.ServerState -> I.ServerNode -> IO ()
nodeChangeEventHandler _scMVar Gossip.ServerDead I.ServerNode {..} = do
Log.info $ "(TODO) Handle Server Dead event: " <> Log.buildString' serverNodeId
Log.warning $ "(TODO) Handle Server Dead event: " <> Log.buildString' serverNodeId
nodeChangeEventHandler _ _ _ = return ()

0 comments on commit 128261e

Please sign in to comment.