ooni-probe-cli/internal/engine/geolocate
Simone Basso dba861d262
feat(httpx): implement optional body logging also on http error (#651)
1. we want optionally to log the body (we don't want to log the body
when we're fetching psiphon secrets or tor targets)

2. we want body logging to _also_ happen on error since this is quite
useful to debug possible errors when accessing the API

This diff adds the above functionality, which were previously
described in https://github.com/ooni/probe/issues/1951.

This diff also adds comprehensive testing.
2022-01-05 16:26:51 +01:00
..
avast_test.go refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
avast.go feat(httpx): implement optional body logging also on http error (#651) 2022-01-05 16:26:51 +01:00
fake_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
geolocate_test.go geolocate: first pass of code review and minor fixes (#359) 2021-06-04 16:06:24 +02:00
geolocate.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
invalid_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
ipconfig_test.go geolocate: first pass of code review and minor fixes (#359) 2021-06-04 16:06:24 +02:00
ipconfig.go feat(httpx): implement optional body logging also on http error (#651) 2022-01-05 16:26:51 +01:00
ipinfo_test.go refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
ipinfo.go feat(httpx): implement optional body logging also on http error (#651) 2022-01-05 16:26:51 +01:00
iplookup_test.go fix(geolocate): no proxy when discovering our IP address (#251) 2021-03-10 12:01:08 +01:00
iplookup.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
mmdblookup_test.go master: update deps and set version to 3.12.0-alpha (#548) 2021-10-20 18:16:40 +02:00
mmdblookup.go geolocate: first pass of code review and minor fixes (#359) 2021-06-04 16:06:24 +02:00
resolverlookup_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
resolverlookup.go fix(geolocate): use powerdns.org whoami service (#592) 2021-11-12 14:53:15 +01:00
stun_test.go refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
stun.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
ubuntu_test.go cleanup(all): stop using deprecated ioutil functions (#381) 2021-06-15 14:01:45 +02:00
ubuntu.go feat(httpx): implement optional body logging also on http error (#651) 2022-01-05 16:26:51 +01:00