Log x-full-error header as warning

This commit is contained in:
DarkCat09 2024-06-03 09:10:34 +04:00
parent ac27fe81f3
commit 9b08f8cb69
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -81,6 +81,8 @@ class TestHTTP(TestCase):
def _check_status(self, resp: urllib3.HTTPResponse) -> None:
logging.debug(resp.headers.items())
logging.debug(resp.data)
if resp.status == 400:
logging.warning(' x-full-error = %s', resp.getheader('x-full-error'))
self.assertEqual(resp.status, 200)
def tearDown(self) -> None: