try {
vmEntity = aaiQuery.getAaiVmData(rootSourceId, rootSourceName);
} catch (CorrelationException e) {
- log.error("Failed to get vm data", e.getMessage());
+ log.error("Failed to get the VM data.", e);
}
return vmEntity;
}
*/
package org.onap.holmes.common.dcae;
+import lombok.extern.slf4j.Slf4j;
import org.onap.holmes.common.dcae.entity.DcaeConfigurations;
import org.onap.holmes.common.dcae.entity.SecurityInfo;
+@Slf4j
public class DcaeConfigurationsCache {
private static DcaeConfigurations dcaeConfigurations = new DcaeConfigurations();
publisher.publish(policyMsg);
log.info("send policyMsg: " + JacksonUtil.beanToJson(policyMsg));
} catch (CorrelationException e) {
- log.error("Failed to publish policyMsg to dmaap", e.getMessage());
+ log.error("Failed to publish the control loop event to DMaaP", e);
} catch (JsonProcessingException e) {
- log.info("Failed to convert policyMsg to json");
+ log.info("Failed to convert the control loop event to json");
} catch (NullPointerException e) {
- log.error("DMaaP configurations does not exist!");
+ log.error("DMaaP configurations do not exist!");
}
}
try {
vnfEntity = aaiQuery.getAaiVnfData(vnfId, vnfName);
} catch (CorrelationException e) {
- log.error("Failed to get vnf data", e.getMessage());
+ log.error("Failed to get the VNF data.", e);
}
return vnfEntity;
}
try {
vmEntity = aaiQuery.getAaiVmData(sourceId, sourceName);
} catch (CorrelationException e) {
- log.error("Failed to get vm data", e.getMessage());
+ log.error("Failed to get the VM data.", e);
}
return vmEntity;
}
messageProducer.send(message);\r
session.commit();\r
} catch (Exception e) {\r
- log.error("Failed send correlation." + e.getMessage(), e);\r
+ log.error("Failed send correlation. " + e.getMessage(), e);\r
} finally {\r
if (connection != null) {\r
try {\r
connection.close();\r
} catch (JMSException e) {\r
- log.error("Failed close connection." + e.getMessage(), e);\r
+ log.error("Failed close connection. " + e.getMessage(), e);\r
}\r
}\r
}\r
connectionManager = new PoolingHttpClientConnectionManager(registry);
connectionManager.setMaxTotal(200);
} catch (Exception e) {
- log.error("Failed to initialize the ssl builder: " + e.getMessage());
+ log.error("Failed to initialize the ssl builder: " + e.getMessage(), e);
}
}