Skip to content

Fix missing commas in logs#7361

Closed
ackintosh wants to merge 3 commits intosigp:unstablefrom
ackintosh:build-log-text
Closed

Fix missing commas in logs#7361
ackintosh wants to merge 3 commits intosigp:unstablefrom
ackintosh:build-log-text

Conversation

@ackintosh
Copy link
Member

@ackintosh ackintosh commented Apr 27, 2025

Issue Addressed

In beacon.log, commas are missing in case where multiple spans are present, for example:

Apr 05 07:03:07.646 DEBUG Sync's view on execution engine state updated  past_state: Online, new_state: Offline, service: "sync"service: "network_context"

A comma should be present between service: "sync" and service: "network_context" as shown in the example.

Proposed Changes

This PR:

  • makes build_log_text() testable and adds unit tests for it
  • fixes the missing commas issue

@ackintosh ackintosh marked this pull request as ready for review April 27, 2025 22:49
@ackintosh ackintosh added the ready-for-review The code is ready for review label Apr 27, 2025
Copy link
Member

@macladson macladson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has some of the same ideas as #7239, I'm wondering if you've had a chance to look at that PR? It would be good if we could make them compatible with each other.

@macladson
Copy link
Member

I've written up a version of this PR on top of #7239
There's a few changes (commas are handled slightly differently and the span order for multiple spans is reversed).
I wanted to make sure you still get the credit for this fix so let me know what you think.

@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels May 15, 2025
@mergify mergify bot added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jun 14, 2025
@mergify mergify bot closed this Jun 14, 2025
@mergify
Copy link

mergify bot commented Jun 14, 2025

Hi @ackintosh, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time.

@mergify mergify bot added the stale Stale PRs that have been inactive and is now outdated label Jun 14, 2025
@macladson
Copy link
Member

macladson commented Jul 26, 2025

Now that #7239 has been merged we can push this fix through. @ackintosh let me know if you want me to make the changes, or if you have time to fix it

@macladson macladson reopened this Jul 26, 2025
@mergify
Copy link

mergify bot commented Jul 26, 2025

This pull request has merge conflicts. Could you please resolve them @ackintosh? 🙏

@mergify mergify bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Jul 26, 2025
@ackintosh
Copy link
Member Author

@macladson Thanks for pointing that out! I believe the fix in this PR has already been addressed by #7239. On the current unstable branch, I checked the logs and confirmed that entries with multiple spans are now correctly formatted, with the missing commas resolved:

Jul 29 06:51:24.629 DEBUG Sync's view on execution engine state updated  past_state: Online, new_state: Online, service: "network_context", service: "sync"

@macladson
Copy link
Member

Oh that's an interesting side-effect! I'll close this now then but we should keep an eye on the logs in case it still appears in very specific situations 👍

@macladson macladson closed this Jul 31, 2025
@ackintosh ackintosh deleted the build-log-text branch August 1, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Stale PRs that have been inactive and is now outdated UX-and-logs waiting-on-author The reviewer has suggested changes and awaits thier implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants