Hi Zoran,

Reviewed the patch.
Ack from me.

BR,

Hung Nguyen - DEK Technologies


--------------------------------------------------------------------------------
From: Zoran Milinkovic zoran.milinko...@ericsson.com
Sent: Tuesday, March 07, 2017 11:04PM
To: Neelakanta Reddy
     reddy.neelaka...@oracle.com
Cc: Opensaf-devel
     opensaf-devel@lists.sourceforge.net
Subject: [devel] [PATCH 1 of 1] imm: fix log level for saClmDispatch [#2353]


  src/imm/immnd/immnd_main.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


If saClmDispatch fails with SA_AIS_ERR_BAD_HANDLE error, the message will be 
logged with warning level and CLM handle will be reinitialized.
All other saClmDispatch errors will be logged with error level.

diff --git a/src/imm/immnd/immnd_main.c b/src/imm/immnd/immnd_main.c
--- a/src/imm/immnd/immnd_main.c
+++ b/src/imm/immnd/immnd_main.c
@@ -407,14 +407,15 @@ int main(int argc, char *argv[])
  
                        if (fds[FD_CLM].revents & POLLIN) {
                                if ((error = saClmDispatch(immnd_cb->clm_hdl, 
SA_DISPATCH_ALL)) != SA_AIS_OK) {
-                                       LOG_ER("saClmDispatch failed: %u", 
error);
                                        if(error == SA_AIS_ERR_BAD_HANDLE){
+                                               LOG_WA("saClmDispatch failed: 
%u", error);
                                                LOG_NO("Re-initializing with 
CLMS");
                                                
saClmFinalize(immnd_cb->clm_hdl);
                                                
immnd_clm_node_cleanup(immnd_cb);
                                                immnd_cb->clmSelectionObject = 
-1;
                                                immnd_init_with_clm();
                                        } else {
+                                               LOG_ER("saClmDispatch failed: 
%u", error);
                                                break;
                                        }
                                }

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to