Skip to content

Commit f5edfc4

Browse files
update log/error messages
1 parent fef23d9 commit f5edfc4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/core/src/main/java/org/apache/synapse/deployers/LocalEntryDeployer.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ private void deployEndpointsForHTTPConnection(OMElement artifactConfig, String f
111111
artifactConfig.getFirstChildWithName(
112112
new QName(SynapseConstants.SYNAPSE_NAMESPACE, HTTP_CONNECTION_IDENTIFIER));
113113
if (httpInitElement != null) {
114-
OMElement documentElement = generateHTTPEndpointOMElement(httpInitElement);
115-
deployHTTPEndpointForElement(documentElement, fileName, properties);
114+
OMElement generatedEndpointElement = generateHTTPEndpointOMElement(httpInitElement);
115+
deployHTTPEndpointForElement(generatedEndpointElement, fileName, properties);
116116
}
117117
}
118118

@@ -127,24 +127,24 @@ private void deployHTTPEndpointForElement(OMElement documentElement, String file
127127
ep.setFileName((new File(fileName)).getName());
128128
if (log.isDebugEnabled()) {
129129
log.debug("Endpoint named '" + ep.getName()
130-
+ "' has been built from the file " + fileName);
130+
+ "' has been built from the http connection file " + fileName);
131131
}
132132
ep.init(getSynapseEnvironment());
133133
if (log.isDebugEnabled()) {
134134
log.debug("Initialized the endpoint : " + ep.getName());
135135
}
136136
getSynapseConfiguration().addEndpoint(ep.getName(), ep);
137137
if (log.isDebugEnabled()) {
138-
log.debug("Endpoint Deployment from file : " + fileName + " : Completed");
138+
log.debug("Endpoint Deployment from the http connection file : " + fileName + " : Completed");
139139
}
140140
log.info("Endpoint named '" + ep.getName()
141-
+ "' has been deployed from file : " + fileName);
141+
+ "' has been deployed from the http connection file : " + fileName);
142142
} else {
143143
handleSynapseArtifactDeploymentError("Endpoint Deployment Failed. The artifact " +
144-
"described in the file " + fileName + " is not an Endpoint");
144+
"described in the http connection file " + fileName + " has filed to describe an Endpoint");
145145
}
146146
} catch (Exception e) {
147-
handleSynapseArtifactDeploymentError("Endpoint Deployment from the file : "
147+
handleSynapseArtifactDeploymentError("Endpoint Deployment from the http connection file : "
148148
+ fileName + " : Failed.", e);
149149
}
150150
}

0 commit comments

Comments
 (0)