mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 12:49:03 +02:00
reporters/swatbot: Add extra logging when entries fail to add
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a304971d89
commit
0f7d41dd73
|
@ -206,7 +206,9 @@ class SwatBotURI(object):
|
|||
|
||||
req = self.client.post(self.uri + "rest/stepfailure/", json=payload, timeout=self.TIMEOUT, headers=self.headers)
|
||||
if req.status_code != requests.codes.created:
|
||||
log.err("SwatBot: Couldn't create failure entry: %s %s (%s)" % (str(s), str(req.status_code), str(req.headers)))
|
||||
log.err("SwatBot: Couldn't create failure entry: Step data: %s" % (str(s)))
|
||||
log.err("SwatBot: Couldn't create failure entry: Payload: %s" % (str(payload)))
|
||||
log.err("SwatBot: Couldn't create failure entry: %s %s" % (str(req.status_code), str(req.headers)))
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user