cloudflare / logshare

logshare is a library & CLI client for retrieving logs from Cloudflare's Enterprise Log Share service.
https://support.cloudflare.com/hc/en-us/articles/216672448
BSD 3-Clause "New" or "Revised" License
80 stars 24 forks source link

[feat] Add Error Context to HTTP 400 errors #24

Closed elithrar closed 6 years ago

elithrar commented 6 years ago

e.g.

logshare-cli --api-email="you@example.com" --api-key="$key" \ 
  --zone-name="example.com" --start-time=`mins-ago 85` --end-time=`mins-ago 10`
[logshare-cli] 09:18:10 failed to fetch via timestamp: HTTP status 400: request failed: bad query: error parsing time: invalid time range: too long

Addresses #23

elithrar commented 6 years ago

Added new Go versions to Travis builds.