5.4.8 change tracing default to false and add case where mistake in config also set to false
Change-Id: Idd9eef627bff529ff94a38d0dd2312b7ed1efce1
Signed-off-by: aa7133@att.com <aa7133@att.com>
diff --git a/RIC-E2-TERMINATION/sctpThread.cpp b/RIC-E2-TERMINATION/sctpThread.cpp
index be75cd7..ae37ee5 100644
--- a/RIC-E2-TERMINATION/sctpThread.cpp
+++ b/RIC-E2-TERMINATION/sctpThread.cpp
@@ -52,7 +52,7 @@
boost::shared_ptr<sinks::synchronous_sink<sinks::text_file_backend>> boostLogger;
double cpuClock = 0.0;
-bool jsonTrace = true;
+bool jsonTrace = false;
void init_log() {
mdclog_attr_t *attr;
@@ -241,6 +241,9 @@
} else if ((tmpStr.compare("stop")) == 0) {
mdclog_write(MDCLOG_INFO, "Trace set to: stop");
sctpParams.trace = false;
+ } else {
+ mdclog_write(MDCLOG_ERR, "Trace was set to wrong value %s, set to stop", tmpStr.c_str());
+ sctpParams->trace = false;
}
jsonTrace = sctpParams.trace;