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

chore: improve 'PRODUCER NOT READY' log #1485

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

Aloxaf
Copy link
Contributor

@Aloxaf Aloxaf commented Jul 28, 2021

I met some miner reports that there are too many (sometimes even millions of) "PRODUCER NOT READY" logs for each layer.

I think we can lower its log level.

@@ -322,9 +322,9 @@ fn create_layer_labels(

while producer_val < i {
if !printed {
debug!("PRODUCER NOT READY! {}", i);
trace!("PRODUCER NOT READY! {}", i);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I also see this logged thousands of time per run. I'd argue this individual log line could be removed. Perhaps a map of the i value to specific count may be needed if this information is important and it could be logged at the end along with the total count?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A map of i to count may be too large to be logged. I agree with remove this line.

@cryptonemo cryptonemo mentioned this pull request Jul 30, 2021
20 tasks
@cryptonemo cryptonemo merged commit f9f4b76 into filecoin-project:master Aug 3, 2021
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