Commit 6a3bcc6b authored by Klaus Aehlig's avatar Klaus Aehlig

Dowgrade log-level for successful requests

Originally, only queries used the be served by haskell daemons
over domain sockets. As they were not too frequent, it was OK
to log each of them at INFO level. However, with requests as
frequent as WaitForJobChange served via luxid, logs fill up
to quickly. So log at debug level only.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent acc4e216
......@@ -303,7 +303,7 @@ logMsg handler req (Bad err) =
logMsg handler req (Ok result) = do
-- only log the first 2,000 chars of the result
logDebug $ "Result (truncated): " ++ take 2000 (J.encode result)
logInfo $ "Successfully handled " ++ hInputLogShort handler req
logDebug $ "Successfully handled " ++ hInputLogShort handler req
-- | Prepares an outgoing message.
prepareMsg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment