Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Base Repo Name in Log Output #3425

Open
aaronbuchwald opened this issue Sep 27, 2024 · 1 comment
Open

Include Base Repo Name in Log Output #3425

aaronbuchwald opened this issue Sep 27, 2024 · 1 comment
Labels
enhancement New feature or request lifecycle/stale

Comments

@aaronbuchwald
Copy link
Collaborator

The AvalancheGo logger outputs the line of code that output the log to provide additional context:

[09-27|13:36:07.555] DEBUG <2jmcRSMX7B1uSsjgR621Ak9TQRhkNKAFuotx3Lg6LK72Q2tng8 Chain> handler/handler.go:502 finished handling sync message {"messageOp": "pull_query"}
[09-27|13:36:07.555] DEBUG <2jmcRSMX7B1uSsjgR621Ak9TQRhkNKAFuotx3Lg6LK72Q2tng8 Chain> handler/handler.go:477 forwarding sync message to consensus {"nodeID": "NodeID-JEz5CzjRovuFfvg4mCmpGbYywyV4JPccu", "messageOp": "chits"}
[09-27|13:36:07.555] DEBUG <2jmcRSMX7B1uSsjgR621Ak9TQRhkNKAFuotx3Lg6LK72Q2tng8 Chain> snowman/engine.go:1116 dropping vote {"reason": "ancestor isn't cached", "initialVoteID": "2dMJB8UjvZLyKt8C4KJrthTtAKcjwCMks4PpxA5V3UQvT13uN5", "bubbledVoteID": "2dMJB8UjvZLyKt8C4KJrthTtAKcjwCMks4PpxA5V3UQvT13uN5"}
[09-27|13:36:07.555] DEBUG <2jmcRSMX7B1uSsjgR621Ak9TQRhkNKAFuotx3Lg6L

however, when using the AvalancheGo logger outside of the AvalancheGo repo, it would be helpful to include avalanchego or hypersdk as the root of the line to make it easier to determine which it came from and search for relevant logs.

@aaronbuchwald aaronbuchwald added the enhancement New feature or request label Sep 27, 2024
Copy link

github-actions bot commented Dec 1, 2024

This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen label will cause this issue to ignore lifecycle events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lifecycle/stale
Projects
None yet
Development

No branches or pull requests

1 participant