You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2023/11/28 21:45:21 UTC

(celix) 08/09: Add log of celix err when filter creation fails in svc registry

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/674-use-properties-type-in-filter
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 4abfa05c6d4c2980635233d14b22567e85d3a84e
Author: Pepijn Noltes <pn...@apache.org>
AuthorDate: Tue Nov 28 22:35:46 2023 +0100

    Add log of celix err when filter creation fails in svc registry
---
 libs/framework/src/service_registry.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/framework/src/service_registry.c b/libs/framework/src/service_registry.c
index 1b64a7da..14c1aedb 100644
--- a/libs/framework/src/service_registry.c
+++ b/libs/framework/src/service_registry.c
@@ -976,6 +976,7 @@ celix_status_t celix_serviceRegistry_addServiceListener(celix_service_registry_t
         filter = celix_filter_create(stringFilter);
         if (filter == NULL) {
             fw_log(registry->framework->logger, CELIX_LOG_LEVEL_ERROR, "Cannot add service listener filter '%s' is invalid", stringFilter);
+            celix_framework_logTssErrors(registry->framework->logger, CELIX_LOG_LEVEL_ERROR);
             return CELIX_ILLEGAL_ARGUMENT;
         }
     }