change error for 400 from info.debug to info.error

This commit is contained in:
mischa 2022-06-27 18:14:04 +02:00
parent 08ef69e685
commit cff860112b
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ def alkira_post(session, uri, body):
try:
response = session.post(url, data=json.dumps(body), headers=headers)
if response.status_code == 400:
logging.info(response.content)
logging.error(response.content)
response.raise_for_status()
except Exception as e:
logging.error(f'Error: {str(e)}')