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

handle log entries containing version numbers (since chia 2.4.4) #390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dannygoulder
Copy link

Chia 2.4.4 included a logging format change to insert version numbers prior to the service name.

I've opened Chia-Network/chia-blockchain#18799 (which I don't imagine will be fixed) but also fixed my local chiadog instances.

Here are the fixes which hopefully should work OK with both old and new logging formats - hopefully the regex group is robust enough to handle all possible version strings in future!

@martomi
Copy link
Owner

martomi commented Nov 18, 2024

Thanks for that! This regex seems safe to add. Would be nice to add a few more tests (even if not super comprehensive) under tests/chia_log/parsers we have some examples of versioned logs here.

For lurkers: It seems that this PR got merged, so there's now also log_backcompat configuration that will make the logs work without this change in chiadog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants