Commit 200262a
Address Copilot PR #273 review: include next_token in pagination warning
Copilot noted that the get_stats_data pagination-failure warning logs
only the base statistics URL (constant across all pages), dropping the
next_token cursor that uniquely identifies which page in the sequence
failed. The original `resp.url` reference was abandoned because `resp`
may be stale when client.request() itself raises — but next_token is
the loop variable and is always current.
Add `(next_token=<value>)` to the warning, plus a focused test that
asserts the cursor surfaces in the WARNING-level log entry.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 44c434b commit 200262a
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1153 | 1156 | | |
1154 | 1157 | | |
1155 | 1158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
239 | 259 | | |
240 | 260 | | |
241 | 261 | | |
| |||
0 commit comments