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

deprecate unused config option timestamp #1052

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

antonilol
Copy link
Contributor

closes #1044

Feel free to edit any of the messages by directly committing (but review is still fine)

Is std::process::exit(1); desirable? This forces users to remove the flag with a nice message, in future releases they will get an error from the arg parser. When not exiting people might (and will) miss it, how many people look at the logs when booting a program? (thinking about one-click install full node distros for example)

src/config.rs Outdated Show resolved Hide resolved
src/config.rs Outdated Show resolved Hide resolved
src/config.rs Outdated Show resolved Hide resolved
Copy link
Owner

@romanz romanz left a comment

Choose a reason for hiding this comment

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

Thanks!

@romanz
Copy link
Owner

romanz commented Jul 13, 2024

@antonilol please squash the commits and update PR's title.

original commits:

deprecate unused config options `daemon_dir` and `timestamp`

fix tests

show all deprecation messages before exiting

also possibly show log_filters message before exiting

revert `daemon_dir` config option deprecation
@antonilol antonilol changed the title deprecate unused config options daemon_dir and timestamp deprecate unused config option timestamp Jul 13, 2024
@antonilol
Copy link
Contributor Author

Done!

@romanz romanz merged commit 831ab0a into romanz:master Jul 14, 2024
4 checks passed
@romanz
Copy link
Owner

romanz commented Jul 14, 2024

Thanks!

@antonilol antonilol deleted the unused-config-options branch July 14, 2024 18:50
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.

Bug: unused config fields (silently ignored config flags)
3 participants