From 9b08f8cb6951a6802503959b12d5602adccca259 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Mon, 3 Jun 2024 09:10:34 +0400 Subject: [PATCH] Log x-full-error header as warning --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 5433d7e..a61706d 100644 --- a/main.py +++ b/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: