* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
*/
package org.onap.aai.tasks;
import org.springframework.stereotype.Component;
import org.onap.aai.logging.LoggingContext;
+import org.onap.aai.logging.LoggingContext.StatusCode;
import org.onap.aai.util.AAIConfig;
import org.onap.aai.util.AAIConstants;
import com.att.eelf.configuration.EELFLogger;
public void loadAAIProperties() {
final UUID transId = UUID.randomUUID();
+ LoggingContext.init();
LoggingContext.requestId(transId);
LoggingContext.partnerName(FROM_APP_ID);
LoggingContext.component(COMPONENT);
+ LoggingContext.targetEntity("AAI");
+ LoggingContext.targetServiceName("loadAAIProperties");
+ LoggingContext.serviceName("AAI");
+ LoggingContext.statusCode(StatusCode.COMPLETE);
+ LoggingContext.responseCode(LoggingContext.SUCCESS);
String dir = FilenameUtils.getFullPathNoEndSeparator(GlobalPropFileName);
if (dir == null || dir.length() < 3) {
long curTSTm = curTS.getTime();
if (curTSTm - lastModTm < PROPERTY_READ_INTERVAL + 1000) {
AAIConfig.reloadConfig();
- LOGGER.info("reloaded from aaiconfig.properties");
+ LOGGER.debug("reloaded from aaiconfig.properties");
}
break;
}