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

Add leaf name to debug messages #27

Open
adamoferro opened this issue Jan 6, 2022 · 2 comments
Open

Add leaf name to debug messages #27

adamoferro opened this issue Jan 6, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@adamoferro
Copy link
Collaborator

Debug messages generated by leaves only show the leaf type but not the leaf name. So, it's not possible to know which particular leaf generated a certain debug message if there are more leaves of the same type.

@adamoferro adamoferro added the enhancement New feature or request label Jan 6, 2022
@ogghst
Copy link
Owner

ogghst commented Jan 7, 2022

you can do it using the gn_leaf_get_config_name function. eg in relay leaf:

ESP_LOGD(TAG, "Initializing relay leaf %s..",
		gn_leaf_get_config_name(leaf_config));

@adamoferro
Copy link
Collaborator Author

Thanks. I didn't find it.
I see now the function name/prototype has changed in "gn_leaf_get_name(leaf_config, leaf_name)".
I keep the issue open as a reminder for all developers... ;-)

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

2 participants