Command output with this PR showing Limit being applied to the request:
INFO[2021-03-18T13:41:54.918084-04:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: debug, RetryMaxCount: 4
DEBU[2021-03-18T13:41:54.918148-04:00] Starting to process Request &{BaseRequest:{} Marker:2021-03-09-00-00-00 Limit:1000}:
This fixes a soft failure in the downloadLogs command:
opsgenie-lamp downloadLogs --start="2021-03-09-00-00-00" --end="2021-03-13-00-00-00" -v
returns
It looks like Limit=0 is implicitly assigned and inserted into the ListLogFilesRequest.
ListLogFilesRequest.Limit
is initialized/evaluated but never assigned a value: https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/adf7a1c79aac73c5b92cc7556061e8ea87828e47/logs/request.go#L37Since
--limit
is not configurable for thedownloadLogs
command, this PR assigns the maximum value from https://docs.opsgenie.com/docs/logs-api#list-log-filesCommand output with this PR showing Limit being applied to the request: