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

discovery: add logging at DEBUG level for orchestrator pool predicate function when using default on-chain selection #1335

Merged
merged 1 commit into from Feb 3, 2020

Conversation

kyriediculous
Copy link
Contributor

What does this pull request do? Explain your changes. (required)
This PR adds logging at the DEBUG level when either sender.ValidateTicketParams or the broadcaster maxPrice check fails in the OrchestratorPool predicate function that is used in default on-chain selection mode to filter out orchestrators that aren't usable for our B.

This adds a little more insight when no orchestrators are found due to them all failing this predicate function, currently it would only log 0 responses , err=<nil>.

Not necessary to include this but since I added it for debugging purposes I might as well open a PR for it.

How did you test each of these updates (required)
used them to debug labrador deployment

Does this pull request close any open issues?

Checklist:

  • README and other documentation updated
  • Node runs in OSX and devenv
  • All tests in ./test.sh pass

discovery/db_discovery.go Outdated Show resolved Hide resolved
discovery/db_discovery.go Outdated Show resolved Hide resolved
discovery/db_discovery.go Outdated Show resolved Hide resolved
discovery/db_discovery.go Show resolved Hide resolved
discovery/db_discovery.go Outdated Show resolved Hide resolved
discovery/db_discovery.go Outdated Show resolved Hide resolved
@kyriediculous
Copy link
Contributor Author

Submitted change requests and removed recipient address in favor of orchestrator service uri fc7677c

discovery/db_discovery.go Outdated Show resolved Hide resolved
discovery/db_discovery.go Outdated Show resolved Hide resolved
Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

Changes look good. Let's rebase

… function when using default on-chain selection
@kyriediculous
Copy link
Contributor Author

kyriediculous commented Feb 3, 2020 via email

Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM!

@kyriediculous kyriediculous merged commit 84cb164 into master Feb 3, 2020
@kyriediculous kyriediculous deleted the nv/log-pred branch February 3, 2020 22:19
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.

None yet

2 participants