From d73ded18952f9fa4e0efe05ae648c2b826d8cf97 Mon Sep 17 00:00:00 2001 From: icex2 Date: Thu, 15 Aug 2024 11:34:31 +0200 Subject: [PATCH] chore: Add more debug logging Good to know if the API actually got initialized when tracing issues with these. --- src/main/core/property-node.c | 2 ++ src/main/core/property.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/core/property-node.c b/src/main/core/property-node.c index 80d965a..970fcbd 100644 --- a/src/main/core/property-node.c +++ b/src/main/core/property-node.c @@ -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); } diff --git a/src/main/core/property.c b/src/main/core/property.c index 7a24353..06ebe86 100644 --- a/src/main/core/property.c +++ b/src/main/core/property.c @@ -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); }