always log error when action not sent to api
This commit is contained in:
parent
72bf4526ec
commit
62f297b768
1 changed files with 5 additions and 0 deletions
|
@ -310,6 +310,11 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None
|
||||||
'response_code': response.getcode(),
|
'response_code': response.getcode(),
|
||||||
'response_content': response.read(),
|
'response_content': response.read(),
|
||||||
})
|
})
|
||||||
|
else:
|
||||||
|
log.error({
|
||||||
|
'response_code': response.getcode(),
|
||||||
|
'response_content': response.read(),
|
||||||
|
})
|
||||||
else:
|
else:
|
||||||
log.error({
|
log.error({
|
||||||
'response_code': response.getcode(),
|
'response_code': response.getcode(),
|
||||||
|
|
Loading…
Reference in a new issue