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

Change logging level of message to avoid confusion. #215

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Aug 9, 2023

A simple temporary workaround for the issue spacemeshos/go-spacemesh#4789

This changes the level of logging messages that report unrecognised files from WARN to DEBUG.

PoST ignores files it doesn't know. At the moment the node creates additional files in the data directory. PoST reporting them as warning to users might mislead them into believing these files don't belong there or shall be deleted. Only showing these messages when debug logging is active should prevent this.

@fasmat fasmat requested review from poszu and countvonzero August 9, 2023 17:44
@fasmat fasmat self-assigned this Aug 9, 2023
@poszu
Copy link
Collaborator

poszu commented Aug 10, 2023

I'd not call it a fix but a workaround for a problem that has its source in go-spacemesh. These files should not be there, hence a warning. Could you add a TODO to bring back the warning level after go-sm is refactored to not store files in the same dir as POS?

@fasmat
Copy link
Member Author

fasmat commented Aug 10, 2023

I added a TODO and updated the PR description to workaround instead of fix 🙂

@fasmat fasmat merged commit 028c298 into develop Aug 10, 2023
@fasmat fasmat deleted the change-logging-level-of-unknown-files branch August 10, 2023 12:11
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