chore: Add more debug logging
Good to know if the API actually got initialized when tracing issues with these.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user