diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-20 20:07:03 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-20 20:07:03 +0200 |
commit | 9fe90554ff1c8c7aea9e1e1e210419a845579edd (patch) | |
tree | 9e99cf16f322398aa00b681bbf1e70879883d65c /store.py | |
parent | 18de421e455ab4b125a6684d703a296562097e6b (diff) | |
download | Trader-9fe90554ff1c8c7aea9e1e1e210419a845579edd.tar.gz Trader-9fe90554ff1c8c7aea9e1e1e210419a845579edd.tar.zst Trader-9fe90554ff1c8c7aea9e1e1e210419a845579edd.zip |
Store duration in http requests
Diffstat (limited to 'store.py')
-rw-r--r-- | store.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -211,6 +211,7 @@ class ReportStore: | |||
211 | "body": body, | 211 | "body": body, |
212 | "headers": headers, | 212 | "headers": headers, |
213 | "status": response.status_code, | 213 | "status": response.status_code, |
214 | "duration": response.elapsed.total_seconds(), | ||
214 | "response": None, | 215 | "response": None, |
215 | "response_same_as": self.last_http["date"] | 216 | "response_same_as": self.last_http["date"] |
216 | }) | 217 | }) |
@@ -222,6 +223,7 @@ class ReportStore: | |||
222 | "body": body, | 223 | "body": body, |
223 | "headers": headers, | 224 | "headers": headers, |
224 | "status": response.status_code, | 225 | "status": response.status_code, |
226 | "duration": response.elapsed.total_seconds(), | ||
225 | "response": response.text, | 227 | "response": response.text, |
226 | "response_same_as": None, | 228 | "response_same_as": None, |
227 | }) | 229 | }) |