Skip to content

Commit

Permalink
update log/error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
chathuranga-jayanath-99 committed Dec 12, 2024
1 parent fef23d9 commit f5edfc4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ private void deployEndpointsForHTTPConnection(OMElement artifactConfig, String f
artifactConfig.getFirstChildWithName(
new QName(SynapseConstants.SYNAPSE_NAMESPACE, HTTP_CONNECTION_IDENTIFIER));
if (httpInitElement != null) {
OMElement documentElement = generateHTTPEndpointOMElement(httpInitElement);
deployHTTPEndpointForElement(documentElement, fileName, properties);
OMElement generatedEndpointElement = generateHTTPEndpointOMElement(httpInitElement);
deployHTTPEndpointForElement(generatedEndpointElement, fileName, properties);
}
}

Expand All @@ -127,24 +127,24 @@ private void deployHTTPEndpointForElement(OMElement documentElement, String file
ep.setFileName((new File(fileName)).getName());
if (log.isDebugEnabled()) {
log.debug("Endpoint named '" + ep.getName()
+ "' has been built from the file " + fileName);
+ "' has been built from the http connection file " + fileName);
}
ep.init(getSynapseEnvironment());
if (log.isDebugEnabled()) {
log.debug("Initialized the endpoint : " + ep.getName());
}
getSynapseConfiguration().addEndpoint(ep.getName(), ep);
if (log.isDebugEnabled()) {
log.debug("Endpoint Deployment from file : " + fileName + " : Completed");
log.debug("Endpoint Deployment from the http connection file : " + fileName + " : Completed");
}
log.info("Endpoint named '" + ep.getName()
+ "' has been deployed from file : " + fileName);
+ "' has been deployed from the http connection file : " + fileName);
} else {
handleSynapseArtifactDeploymentError("Endpoint Deployment Failed. The artifact " +
"described in the file " + fileName + " is not an Endpoint");
"described in the http connection file " + fileName + " has filed to describe an Endpoint");
}
} catch (Exception e) {
handleSynapseArtifactDeploymentError("Endpoint Deployment from the file : "
handleSynapseArtifactDeploymentError("Endpoint Deployment from the http connection file : "
+ fileName + " : Failed.", e);
}
}
Expand Down

0 comments on commit f5edfc4

Please sign in to comment.