change error for 400 from info.debug to info.error
This commit is contained in:
parent
08ef69e685
commit
cff860112b
2
push.py
2
push.py
|
@ -135,7 +135,7 @@ def alkira_post(session, uri, body):
|
||||||
try:
|
try:
|
||||||
response = session.post(url, data=json.dumps(body), headers=headers)
|
response = session.post(url, data=json.dumps(body), headers=headers)
|
||||||
if response.status_code == 400:
|
if response.status_code == 400:
|
||||||
logging.info(response.content)
|
logging.error(response.content)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f'Error: {str(e)}')
|
logging.error(f'Error: {str(e)}')
|
||||||
|
|
Loading…
Reference in New Issue