Commit e51ca051 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

baserlib: Fix feedback function



The feedback function is called with only one parameter, a tuple
with the message details.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent d8bcfe21
...@@ -219,15 +219,16 @@ def GetClient(): ...@@ -219,15 +219,16 @@ def GetClient():
raise http.HttpBadGateway("Master seems to unreachable: %s" % str(err)) raise http.HttpBadGateway("Master seems to unreachable: %s" % str(err))
def FeedbackFn(ts, log_type, log_msg): # pylint: disable-msg=W0613 def FeedbackFn(msg):
"""Feedback logging function for http case. """Feedback logging function for jobs.
We don't have a stdout for printing log messages, so log them to the We don't have a stdout for printing log messages, so log them to the
http log at least. 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) logging.info("%s: %s", log_type, log_msg)
......
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