Skip to content

nicer log messages & dev relay #997

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brianolson
Copy link
Contributor

dev relay default to everything under ./data/ (sqlite and disk persist)

dev relay default to everything under ./data/ (sqlite and disk persist)
Copy link
Collaborator

@bnewbold bnewbold left a comment

Choose a reason for hiding this comment

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

definitely happy about more log context, and improving the --disk-persister-dir argument.

left some comments about implementation details

@@ -24,7 +24,8 @@ type Scheduler struct {
lk sync.Mutex
active map[string][]*consumerTask

ident string
identLogKey string
Copy link
Collaborator

Choose a reason for hiding this comment

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

making this configurable feels pretty convoluted to me. can we just call it "host" or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

scheduler was presented as being more generic than that, not explicitly about a "host", but it is actually always used that way, so, ok

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, because in relay code I'm trying to move log lines about "host" to be "pds". I think "host" is too generic and if more log lines gather on "pds" it will be easier to search for problem sources in logs. I think some other users of parallel scheduler are using it to process the full relay firehose, so a different log key would make sense there.

@bnewbold bnewbold marked this pull request as draft April 14, 2025 20:31
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