Re: [devel] [PATCH 1 of 1] rde: Change syslog priority from ER to WA when MDS send fails [#1907]
Ack. Thanks, Ramesh. On 7/8/2016 6:09 PM, Anders Widell wrote: > osaf/services/infrastructure/rde/rde_mds.cc | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > > RDE may fail to send MDS messages to its peer, e.g. when the peer node is > down. > This should not be considered an error and therefore the syslog messages > should > not have ER priority. The messages are now logged with WA priority. > > diff --git a/osaf/services/infrastructure/rde/rde_mds.cc > b/osaf/services/infrastructure/rde/rde_mds.cc > --- a/osaf/services/infrastructure/rde/rde_mds.cc > +++ b/osaf/services/infrastructure/rde/rde_mds.cc > @@ -276,7 +276,7 @@ uint32_t rde_mds_send(struct rde_msg *ms > > rc = ncsmds_api(); > if (NCSCC_RC_FAILURE == rc) { > - LOG_ER("Failed to send %s to %" PRIx64, rde_msg_name[msg->type], > + LOG_WA("Failed to send %s to %" PRIx64, rde_msg_name[msg->type], >to_dest); > base::Sleep(base::kOneHundredMilliseconds); > } else { -- ___ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel
[devel] [PATCH 1 of 1] rde: Change syslog priority from ER to WA when MDS send fails [#1907]
osaf/services/infrastructure/rde/rde_mds.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) RDE may fail to send MDS messages to its peer, e.g. when the peer node is down. This should not be considered an error and therefore the syslog messages should not have ER priority. The messages are now logged with WA priority. diff --git a/osaf/services/infrastructure/rde/rde_mds.cc b/osaf/services/infrastructure/rde/rde_mds.cc --- a/osaf/services/infrastructure/rde/rde_mds.cc +++ b/osaf/services/infrastructure/rde/rde_mds.cc @@ -276,7 +276,7 @@ uint32_t rde_mds_send(struct rde_msg *ms rc = ncsmds_api(); if (NCSCC_RC_FAILURE == rc) { - LOG_ER("Failed to send %s to %" PRIx64, rde_msg_name[msg->type], + LOG_WA("Failed to send %s to %" PRIx64, rde_msg_name[msg->type], to_dest); base::Sleep(base::kOneHundredMilliseconds); } else { -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel