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

Reduce invalid job found log from error to warning #480

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eandersson
Copy link
Collaborator

@eandersson eandersson commented Nov 15, 2024

While this message can be useful, most commonly it is seen after receiving a mining.notify, or briefly getting disconnected from the pool. changing it from a ERROR to WARNING log message to not scare users.

This also makes the implementation more consistent, as in some places and chips we already logged as ERROR and in other places as INFO.

@eandersson eandersson changed the title Reduce invalid job found from error to info Reduce invalid job found log from error to info Nov 15, 2024
@WantClue WantClue requested a review from skot November 16, 2024 21:49
@skot
Copy link
Owner

skot commented Nov 22, 2024

a rejected share seems slightly more important than INFO... maybe WARN?

@eandersson
Copy link
Collaborator Author

eandersson commented Nov 22, 2024

a rejected share seems slightly more important than INFO... maybe WARN?

Yea - maybe warning. Most important is that we are consistent across all chip types.

Mostly worried about these being misread as a serious issue (red-herring) when it is much more likely to be the symptom and not the cause, most of the time it is due to a mining.notify or connectivity instability.

Copy link
Owner

@skot skot left a comment

Choose a reason for hiding this comment

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

Plz change to ESP_LOGW, otherwise LGTM

@eandersson eandersson requested a review from skot November 30, 2024 20:10
@eandersson
Copy link
Collaborator Author

Plz change to ESP_LOGW, otherwise LGTM

Updated

@WantClue WantClue added enhancement New feature or request accepted This issue will be worked on labels Dec 2, 2024
@eandersson eandersson requested review from skot and removed request for skot December 10, 2024 22:30
@eandersson eandersson changed the title Reduce invalid job found log from error to info Reduce invalid job found log from error to warning Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue will be worked on enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants