Log received message at debug level
authorKlaus Aehlig <aehlig@google.com>
Wed, 10 Jul 2013 14:58:10 +0000 (16:58 +0200)
committerKlaus Aehlig <aehlig@google.com>
Fri, 12 Jul 2013 13:42:35 +0000 (15:42 +0200)
At debug level, we can well afford to have a detailed entry
for each message received by a server.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>

src/Ganeti/Query/Server.hs

index 3c8d8a9..66cf255 100644 (file)
@@ -203,6 +203,7 @@ handleClientMsg client creader args = do
 handleClient :: Client -> ConfigReader -> IO Bool
 handleClient client creader = do
   !msg <- recvMsgExt client
+  logDebug $ "Received message: " ++ show msg
   case msg of
     RecvConnClosed -> logDebug "Connection closed" >> return False
     RecvError err -> logWarning ("Error during message receiving: " ++ err) >>