diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-03-09 09:54:52 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-03-09 09:54:52 +0200 |
commit | a1613e514ef1c1db4ce03fa72defe065da73a3c3 (patch) | |
tree | 7eef783ebbe1316a02a754182e9f65ffc5bb2a56 | |
parent | ec4029449097940fb9b2eaf3a45e32883a110bbb (diff) | |
download | effi-reg-a1613e514ef1c1db4ce03fa72defe065da73a3c3.tar.gz |
Add: log message for when POST is faked, for easier debugging
-rwxr-xr-x | effiapi | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,10 @@ class FakeHTTPAPI(HTTPAPI): self._memb = {} def POST(self, url, headers, body): + logging.debug( + 'FakeHTTPAPI.POST url=%r headers=%r body=r', + url, headers, body) + rid = str(uuid.uuid4()) self._memb[rid] = copy.deepcopy(body) headers = { |