summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2018-09-04 12:17:47 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-04 12:17:47 +0000
commit0ef9dc76686a02935da74b86d373e977a639afbe (patch)
tree836c6c72753cafa022100865b704b03f687de09a
parent40e9ca4cb94ce755afbdb61b150d4803f4ecf4d5 (diff)
parent1f3fb927caed1f951f8c65f58623549c73121191 (diff)
Merge "fixing Sonar reported log issue"
-rw-r--r--common/src/main/java/org/onap/so/logger/LoggerStartupListener.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/src/main/java/org/onap/so/logger/LoggerStartupListener.java b/common/src/main/java/org/onap/so/logger/LoggerStartupListener.java
index 0d20dd8bf9..1ed18eae0f 100644
--- a/common/src/main/java/org/onap/so/logger/LoggerStartupListener.java
+++ b/common/src/main/java/org/onap/so/logger/LoggerStartupListener.java
@@ -15,6 +15,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ * Modifications Copyright (C) 2018 IBM.
* ============LICENSE_END=========================================================
*/
@@ -23,6 +24,7 @@ package org.onap.so.logger;
import java.net.InetAddress;
import java.net.UnknownHostException;
+import org.onap.so.utils.UUIDChecker;
import org.springframework.stereotype.Component;
import ch.qos.logback.classic.Level;
@@ -37,6 +39,7 @@ import ch.qos.logback.core.spi.LifeCycle;
public class LoggerStartupListener extends ContextAwareBase implements LoggerContextListener, LifeCycle {
private boolean started = false;
+ private static final MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.GENERAL, LoggerStartupListener.class);
@Override
public void start() {
@@ -46,7 +49,8 @@ public class LoggerStartupListener extends ContextAwareBase implements LoggerCon
try {
addr = InetAddress.getLocalHost();
} catch (UnknownHostException e) {
- e.printStackTrace();
+ LOGGER.error("UnknownHostException",e);
+
}
Context context = getContext();
if (addr != null) {