Hi Anders,

Reviewed the patch.
Ack from me.

BR,

Hung Nguyen - DEK Technologies


--------------------------------------------------------------------------------
From: Anders Widell [email protected]
Sent: Monday, October 24, 2016 6:15PM
To: Hung Nguyen, Neelakanta Reddy, Zoran Milinkovic
     [email protected], [email protected], 
[email protected]
Cc: Opensaf-devel
     [email protected]
Subject: [PATCH 1 of 1] imm: Convert syslog message to TRACE, to avoid filling 
up the syslog [#2136]


  osaf/services/saf/immsv/immnd/ImmModel.cc |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


After a commit of an SMF campaign, the syslog was filled with thousands of log
messages with the text "Delete of PERSISTENT runtime object ...". Since the
syslog is a global log for all applications running on a node, OpenSAF ought to
be careful to not produce an excessive amount of syslog messages. The message
has therefore been converted to a trace message.

diff --git a/osaf/services/saf/immsv/immnd/ImmModel.cc 
b/osaf/services/saf/immsv/immnd/ImmModel.cc
--- a/osaf/services/saf/immsv/immnd/ImmModel.cc
+++ b/osaf/services/saf/immsv/immnd/ImmModel.cc
@@ -16592,10 +16592,10 @@ SaInt32T ImmModel::pbePrtObjDeletesConti
          if(error == SA_AIS_OK) {
              if(oMut->mAfterImage->mObjFlags & IMM_PRTO_FLAG) {
                  if(oMut->mAfterImage->mImplementer) {
-                    LOG_NO("Delete of PERSISTENT runtime object '%s' (%s).", 
i2->first.c_str(),
+                    TRACE("Delete of PERSISTENT runtime object '%s' (%s).", 
i2->first.c_str(),
                          
oMut->mAfterImage->mImplementer->mImplementerName.c_str());
                  } else {
-                    LOG_NO("Delete of PERSISTENT runtime object '%s' (%s).", 
i2->first.c_str(),
+                    TRACE("Delete of PERSISTENT runtime object '%s' (%s).", 
i2->first.c_str(),
                          "<detached>");
                  }
              } else {


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to