From 45e0d704baba95778bd83b5eeaafceee2a1df914 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Tue, 29 Dec 2009 16:33:11 +0100 Subject: [PATCH] jqueue/_CheckRpcResult: log the whole operation Currently only the rpc call, but not its description (which also shows the argument) is logged. We change this to log failmsg too, and this also silences a warning. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Olivier Tharan <olive@google.com> --- lib/jqueue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jqueue.py b/lib/jqueue.py index ec2f52a18..6e576b001 100644 --- a/lib/jqueue.py +++ b/lib/jqueue.py @@ -747,8 +747,8 @@ class JobQueue(object): msg = result[node].fail_msg if msg: failed.append(node) - logging.error("RPC call %s failed on node %s: %s", - result[node].call, node, msg) + logging.error("RPC call %s (%s) failed on node %s: %s", + result[node].call, failmsg, node, msg) else: success.append(node) -- GitLab