From: Driptaroop Das Date: Wed, 9 Jan 2019 14:11:56 +0000 (+0530) Subject: ListEndpoints-added logger with System.err X-Git-Tag: 1.4.1~14^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=cacabd74d27c390e69917a649c5354990ba0eb58;p=aai%2Faai-common.git ListEndpoints-added logger with System.err ListEndpoints.java - added logger along with system.err Issue-ID: AAI-2062 Change-Id: Icc0953ae8061a068a1dec978d657e40cad49552d Signed-off-by: Driptaroop Das --- diff --git a/aai-core/src/main/java/org/onap/aai/audit/ListEndpoints.java b/aai-core/src/main/java/org/onap/aai/audit/ListEndpoints.java index c56fdd7f..fc383581 100644 --- a/aai-core/src/main/java/org/onap/aai/audit/ListEndpoints.java +++ b/aai-core/src/main/java/org/onap/aai/audit/ListEndpoints.java @@ -3,6 +3,8 @@ * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright (C) 2019 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,9 +76,10 @@ public class ListEndpoints { String schemaUriBasePath = context.getEnvironment().getProperty("schema.uri.base.path"); if(schemaUriBasePath == null){ - System.err.println("Unable to find the property schema.uri.base.path," - +" please check if specified in system property or in schema-ingest.properties" - ); + String errorMsg = "Unable to find the property schema.uri.base.path," + +" please check if specified in system property or in schema-ingest.properties"; + System.err.println(errorMsg); + LOGGER.error(errorMsg); } SchemaVersions schemaVersions = context.getBean(SchemaVersions.class);