1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Show the status code instead of -1 in RRDP status metrics.

This commit is contained in:
Martin Hoffmann
2020-10-09 11:00:42 +02:00
parent 64382f79ab
commit fd8c96bf81
2 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,7 @@ Bug Fixes
* Apply unsafe filter (if requested) also on subsequent validation runs in
server mode. ([#407])
* Update all metrics on all validation runs. ([#407])
* Show the status code instead of -1 in RRDP status metrics. ([#408])
Other Changes
@ -15,6 +16,7 @@ Other Changes
[#406]: https://github.com/NLnetLabs/routinator/pull/406
[#407]: https://github.com/NLnetLabs/routinator/pull/407
[#408]: https://github.com/NLnetLabs/routinator/pull/408
## 0.8.0-rc1

View File

@ -244,9 +244,7 @@ impl HttpClient {
&self,
uri: &uri::Https
) -> Result<Response, Error> {
self.client().get(uri.as_str()).send().and_then(|res| {
res.error_for_status()
}).map_err(|err| {
self.client().get(uri.as_str()).send().map_err(|err| {
warn!("RRDP {}: {}", uri, err);
Error
})