Log x-full-error header as warning
This commit is contained in:
parent
ac27fe81f3
commit
9b08f8cb69
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue