From 128261e78394d9a85d2a7ab31d48d506ce1dfc14 Mon Sep 17 00:00:00 2001 From: mu <59917266+4eUeP@users.noreply.github.com> Date: Fri, 26 Apr 2024 17:40:57 +0800 Subject: [PATCH] minor improvements: remove info-level logging for ServerContext which may be sensitive (#1802) --- hstream/app/lib/KafkaServer.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hstream/app/lib/KafkaServer.hs b/hstream/app/lib/KafkaServer.hs index 1e86f41e1..5d926fd61 100644 --- a/hstream/app/lib/KafkaServer.hs +++ b/hstream/app/lib/KafkaServer.hs @@ -4,7 +4,6 @@ {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedRecordDot #-} {-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} @@ -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 @@ -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 ()