Commit 7359168
authored
[ML] Enhance error logging in CJsonStateRestoreTraverser for improved debugging. (#2867)
Added detailed information about token types and stream state during JSON parsing errors.
When you encounter the error now, you'll get detailed information like:
JSON state must be object at root. Found token type: string (value: 6), isArrayOfObjects: false, isEof: false, stream state - bad: false, fail: false, eof: false, bytes remaining: 15, buffer position: 0
This will help you understand:
What type of JSON content was actually found (string, number, boolean, etc.)
Stream health - whether the input stream is corrupted
Buffer state - how much data was read and where the parser was positioned
Parsing context - whether it was expecting an array of objects or a single object1 parent 157d0c3 commit 7359168
1 file changed
+61
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
318 | 371 | | |
319 | 372 | | |
320 | 373 | | |
| |||
349 | 402 | | |
350 | 403 | | |
351 | 404 | | |
352 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
353 | 412 | | |
354 | 413 | | |
355 | 414 | | |
| |||
0 commit comments