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

Store the locations of loaded config files for debugging #55

Open
Kixunil opened this issue Nov 25, 2022 · 0 comments
Open

Store the locations of loaded config files for debugging #55

Kixunil opened this issue Nov 25, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Kixunil
Copy link
Owner

Kixunil commented Nov 25, 2022

It may be useful to be able to debug which config files were loaded. An example where this might've been useful: raspiblitz/raspiblitz#3447 I've seen some services doing such logging (Tor, I think) and it was handy.

The proposed API is to have a Metadata struct returned together with the configuration. It will also contain program path and spans. And potentially more things in the future. We can simply use Vec<PathBuf>. It will slow down startup a bit but hopefully not much. If this ever becomes a problem we may offer a feature/cfg option to not fill it (empty is zero cost).

@Kixunil Kixunil added the enhancement New feature or request label Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant