This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 1387c92256f62a0b0369436d8ccc19b7e626fe65 Author: Robert Lazarski <robertlazar...@gmail.com> AuthorDate: Thu Aug 1 17:51:14 2024 -0400 More logging cleanup in the new enableJSONOnly=true related code --- modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java | 6 +++--- .../json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java b/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java index f7bfadea3d..9a5e72732f 100644 --- a/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java +++ b/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java @@ -97,7 +97,7 @@ public class JSONMessageHandler extends AbstractHandler { } else { String enableJSONOnly = (String) msgContext.getAxisService().getParameterValue("enableJSONOnly"); if (enableJSONOnly !=null && enableJSONOnly.equalsIgnoreCase("true")) { - log.warn("On enableJSONOnly=true Axis operation is null on JSON request, message hasn't been dispatched to an operation, proceeding on JSON message name discovery and AxisOperation mapping"); + log.debug("On enableJSONOnly=true Axis operation is null on JSON request, message hasn't been dispatched to an operation, proceeding on JSON message name discovery and AxisOperation mapping"); try{ Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM); if (tempObj != null) { @@ -112,7 +112,7 @@ public class JSONMessageHandler extends AbstractHandler { log.error("JSONMessageHandler can't find messageName: " +messageName); throw new IOException("Bad Request"); } else { - log.warn("JSONMessageHandler found messageName: " +messageName); + log.debug("JSONMessageHandler found messageName: " +messageName); msgContext.setProperty("jsonMessageName", messageName); } } @@ -121,7 +121,7 @@ public class JSONMessageHandler extends AbstractHandler { log.error("JSONMessageHandler error: " +e.getMessage()); } } else { - log.warn("On enableJSONOnly=false Axis operation is null, ignore it"); + log.debug("On enableJSONOnly=false Axis operation is null, ignore it"); } } return InvocationResponse.CONTINUE; diff --git a/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java b/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java index 815a647109..fdacd5da8e 100644 --- a/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java +++ b/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java @@ -97,7 +97,7 @@ public class JSONMessageHandler extends AbstractHandler { } else { String enableJSONOnly = (String) msgContext.getAxisService().getParameterValue("enableJSONOnly"); if (enableJSONOnly !=null && enableJSONOnly.equalsIgnoreCase("true")) { - log.warn("On enableJSONOnly=true Axis operation is null on JSON request, message hasn't been dispatched to an operation, proceeding on JSON message name discovery and AxisOperation mapping"); + log.debug("On enableJSONOnly=true Axis operation is null on JSON request, message hasn't been dispatched to an operation, proceeding on JSON message name discovery and AxisOperation mapping"); try{ Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM); if (tempObj != null) { @@ -112,7 +112,7 @@ public class JSONMessageHandler extends AbstractHandler { log.error("JSONMessageHandler can't find messageName: " +messageName); throw new IOException("Bad Request"); } else { - log.warn("JSONMessageHandler found messageName: " +messageName); + log.debug("JSONMessageHandler found messageName: " +messageName); msgContext.setProperty("jsonMessageName", messageName); } } @@ -121,7 +121,7 @@ public class JSONMessageHandler extends AbstractHandler { log.error("JSONMessageHandler error: " +e.getMessage()); } } else { - log.warn("On enableJSONOnly=false Axis operation is null, ignore it"); + log.debug("On enableJSONOnly=false Axis operation is null, ignore it"); } } return InvocationResponse.CONTINUE;