Commit 46c34da
Fix JSON log attribute consistency and double encoding
- Change tenant_name to tenant in AccessLogEntry for consistency
- Improve JSONLogWriter to detect and pass through Rails JSON logs directly
- Prevent double JSON encoding of application logs
- Maintain consistency across navigator access logs and Rails app logs
The JSONLogWriter now checks if incoming logs are already JSON formatted
with @timestamp and severity fields (indicating Rails JSON output) and
passes them through directly instead of wrapping them again.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f93aa6d commit 46c34da
1 file changed
Lines changed: 21 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
417 | 436 | | |
418 | 437 | | |
419 | 438 | | |
| |||
503 | 522 | | |
504 | 523 | | |
505 | 524 | | |
506 | | - | |
| 525 | + | |
507 | 526 | | |
508 | 527 | | |
509 | 528 | | |
| |||
551 | 570 | | |
552 | 571 | | |
553 | 572 | | |
554 | | - | |
| 573 | + | |
555 | 574 | | |
556 | 575 | | |
557 | 576 | | |
| |||
0 commit comments