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 2019/01/07 10:53:07 UTC

[celix] 02/02: CELIX-454: Updates some logging in pubsub discovery from error level to warning level

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

pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 2426cf97647d20dec83a65a7df5a0c3996b15246
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Mon Jan 7 11:52:23 2019 +0100

    CELIX-454: Updates some logging in pubsub discovery from error level to warning level
---
 bundles/pubsub/pubsub_discovery/src/pubsub_discovery_impl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bundles/pubsub/pubsub_discovery/src/pubsub_discovery_impl.c b/bundles/pubsub/pubsub_discovery/src/pubsub_discovery_impl.c
index 973b38b..4e902e3 100644
--- a/bundles/pubsub/pubsub_discovery/src/pubsub_discovery_impl.c
+++ b/bundles/pubsub/pubsub_discovery/src/pubsub_discovery_impl.c
@@ -264,7 +264,7 @@ void* psd_refresh(void *data) {
                 //only refresh ttl -> no index update -> no watch trigger
                 int rc = etcd_refresh(entry->key, disc->ttlForEntries);
                 if (rc != ETCDLIB_RC_OK) {
-                    L_ERROR("[PSD] Warning: error refreshing etcd key %s\n", entry->key);
+                    L_WARN("[PSD] Warning: error refreshing etcd key %s\n", entry->key);
                     entry->isSet = false;
                     entry->errorCount += 1;
                 } else {
@@ -277,7 +277,7 @@ void* psd_refresh(void *data) {
                     entry->isSet = true;
                     entry->setCount += 1;
                 } else {
-                    L_ERROR("[PSD] Warning: error setting endpoint in etcd for key %s\n", entry->key);
+                    L_WARN("[PSD] Warning: error setting endpoint in etcd for key %s\n", entry->key);
                     entry->errorCount += 1;
                 }
                 free(str);
@@ -545,7 +545,7 @@ celix_properties_t* pubsub_discovery_parseEndpoint(pubsub_discovery_t *disc, con
 
     bool valid = pubsubEndpoint_isValid(props, true, true);
     if (!valid) {
-        L_ERROR("[PSD] Warning retrieved endpoint is not valid\n");
+        L_WARN("[PSD] Warning retrieved endpoint is not valid\n");
         celix_properties_destroy(props);
         props = NULL;
     }