From 41fcb3febf287f5b06276e71b9b69bbba0ad29da Mon Sep 17 00:00:00 2001 From: "aa7133@att.com" Date: Sun, 29 Nov 2020 13:48:25 +0200 Subject: [PATCH] 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 --- RIC-E2-TERMINATION/container-tag.yaml | 2 +- RIC-E2-TERMINATION/sctpThread.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RIC-E2-TERMINATION/container-tag.yaml b/RIC-E2-TERMINATION/container-tag.yaml index 5541c2f..b71c44e 100644 --- a/RIC-E2-TERMINATION/container-tag.yaml +++ b/RIC-E2-TERMINATION/container-tag.yaml @@ -1,3 +1,3 @@ # The Jenkins job requires a tag to build the Docker image. # Global-JJB script assumes this file is in the repo root. -tag: 5.4.7 +tag: 5.4.8 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_LOG_INLINE_GLOBAL_LOGGER_DEFAULT(my_logger, src::logger_mt) boost::shared_ptr> boostLogger; double cpuClock = 0.0; -bool jsonTrace = true; +bool jsonTrace = false; void init_log() { mdclog_attr_t *attr; @@ -241,6 +241,9 @@ int buildConfiguration(sctp_params_t &sctpParams) { } 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; -- 2.16.6