From e51ca051fcab1f7abd8dcec74c2da356ed28146e Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 8 Jul 2010 17:02:14 +0200
Subject: [PATCH] baserlib: Fix feedback function

The feedback function is called with only one parameter, a tuple
with the message details.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/rapi/baserlib.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/rapi/baserlib.py b/lib/rapi/baserlib.py
index 4a6a902a6..dc7cd1202 100644
--- a/lib/rapi/baserlib.py
+++ b/lib/rapi/baserlib.py
@@ -219,15 +219,16 @@ def GetClient():
     raise http.HttpBadGateway("Master seems to unreachable: %s" % str(err))
 
 
-def FeedbackFn(ts, log_type, log_msg): # pylint: disable-msg=W0613
-  """Feedback logging function for http case.
+def FeedbackFn(msg):
+  """Feedback logging function for jobs.
 
   We don't have a stdout for printing log messages, so log them to the
   http log at least.
 
-  @param ts: the timestamp (unused)
+  @param msg: the message
 
   """
+  (_, log_type, log_msg) = msg
   logging.info("%s: %s", log_type, log_msg)
 
 
-- 
GitLab