chore: Add more debug logging

Good to know if the API actually got initialized
when tracing issues with these.
This commit is contained in:
icex2 2024-08-15 11:34:31 +02:00
parent 9a87281603
commit d73ded1895
2 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,8 @@ void core_property_node_api_set(const core_property_node_api_t *api)
CORE_PROPERTY_NODE_ASSERT_IMPLEMENTED(api->v1.bool_read, bool_read);
CORE_PROPERTY_NODE_ASSERT_IMPLEMENTED(api->v1.remove, remove);
CORE_PROPERTY_NODE_ASSERT_IMPLEMENTED(api->v1.copy, copy);
log_misc("api v1 set");
} else {
log_fatal("Unsupported API version: %d", api->version);
}

View File

@ -47,6 +47,8 @@ void core_property_api_set(const core_property_api_t *api)
CORE_PROPERTY_ASSERT_IMPLEMENTED(
api->v1.other_node_insert, other_node_insert);
CORE_PROPERTY_ASSERT_IMPLEMENTED(api->v1.free, free);
log_misc("api v1 set");
} else {
log_fatal("Unsupported API version: %d", api->version);
}