Open-EO / openeo-backend-validator

Service to validate back-end compliance with the API specification.
Apache License 2.0
1 stars 3 forks source link

debug mode: don't print geotiff data #38

Closed soxofaan closed 4 years ago

soxofaan commented 4 years ago

when running the validator with --debug the response body is printed, but this could be geotiff binary data, which is a bit much :)

bgoesswe commented 4 years ago

haha, I didn't think of that, since 8b94852705dadb54a22506a305b0cfb42f8757ec there is a size limit for the response body (currently 1000 chars)

soxofaan commented 4 years ago

now it indeed show

2020/07/14 17:32:29 ---Response---
2020/07/14 17:32:29 Status Code:  200
2020/07/14 17:32:29 Header:  {"Access-Control-Allow-Credentials":["true"],"Access-Control-Allow-Origin":["*"],"Cache-Control":["public, max-age=43200"],"Content-Length":["177315"],"Content-Type":["application/octet-stream"],"Date":["Tue, 14 Jul 2020 15:32:28 GMT"],"Etag":["\"1594740748.5332336-177315-2437352010\""],"Expires":["Wed, 15 Jul 2020 03:32:28 GMT"],"Last-Modified":["Tue, 14 Jul 2020 15:32:28 GMT"],"Server":["gunicorn/20.0.4"],"Via":["1.1 openeo-dev.vgt.vito.be"]}
2020/07/14 17:32:29 Body: Too long to be displayed

which doesn't ruin my terminal history

thanks