Factor out the logRpcErrors function
authorMichele Tartara <mtartara@google.com>
Wed, 10 Jul 2013 14:39:33 +0000 (14:39 +0000)
committerMichele Tartara <mtartara@google.com>
Thu, 11 Jul 2013 11:41:44 +0000 (13:41 +0200)
commita246ce76cdaf709402491ea0d5bff5e9f696830b
tree6071906937c92447bdbd7dad7464f64e321ca095
parent3312709dee41c2eeee89af945c2a0471d9c5e517
Factor out the logRpcErrors function

This function can be useful to multiple RPC calls, therefore it is moved
to the file containing the common RPC functions.

Also, it is made more generic by changing its signature.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
src/Ganeti/Query/Node.hs
src/Ganeti/Rpc.hs