Skip to content

Commit

Permalink
[JBWS-4437]:Fix the wrong warn level log message
Browse files Browse the repository at this point in the history
  • Loading branch information
jimma committed Dec 16, 2024
1 parent 431b988 commit b5ba6b8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/main/java/org/jboss/ws/plugins/tools/WSContractDelegate.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ public WSContractDelegate(Log log)

public void runProvider(WSContractProviderParams params) throws Exception
{
log.warn("run provider");
log.warn("source=" + params.getSourceDirectory());
log.warn("dest=" + params.getOutputDirectory());
log.info("run provider");
log.info("source=" + params.getSourceDirectory());
log.info("dest=" + params.getOutputDirectory());
if (params.isFork() || Util.getJVMMajorVersion() > 8)
{
log.warn("run out of process");
log.info("run out of process");
runProviderOutOfProcess(params);
}
else
{
log.warn("run in process");
log.info("run in process");
runProviderInProcess(params);
}
}
Expand All @@ -77,7 +77,7 @@ private void runProviderOutOfProcess(WSContractProviderParams params) throws Exc
List<String> commandList = initCommandList(params.getArgLine(), params.getManifestOnlyJar(), "org.jboss.ws.tools.cmd.WSProvide");
getProviderCommandLine(commandList, params);

log.warn("Running command line: " + commandList);
log.info("Running command line: " + commandList);

ProcessBuilder pb = new ProcessBuilder(commandList);
Process p = pb.start();
Expand All @@ -93,17 +93,17 @@ private void runProviderOutOfProcess(WSContractProviderParams params) throws Exc

public void runConsumer(WSContractConsumerParams params, String wsdl) throws Exception
{
log.warn("run consumer " + wsdl);
log.warn("source=" + params.getSourceDirectory());
log.warn("output=" + params.getOutputDirectory());
log.info("run consumer " + wsdl);
log.info("source=" + params.getSourceDirectory());
log.info("output=" + params.getOutputDirectory());
if (params.isFork() || Util.getJVMMajorVersion() > 8)
{
log.warn("run consumer out of process");
log.info("run consumer out of process");
runConsumerOutOfProcess(params, wsdl);
}
else
{
log.warn("run consumer in process");
log.info("run consumer in process");
runConsumerInProcess(params, wsdl);
}
}
Expand All @@ -123,7 +123,7 @@ private void runConsumerOutOfProcess(WSContractConsumerParams params, String wsd
List<String> commandList = initCommandList(params.getArgLine(), params.getManifestOnlyJar(), "org.jboss.ws.tools.cmd.WSConsume");
getConsumerCommandLine(commandList, params, wsdl);

log.warn("Running command line: " + commandList);
log.info("Running command line: " + commandList);

ProcessBuilder pb = new ProcessBuilder(commandList);
Process p = pb.start();
Expand Down

0 comments on commit b5ba6b8

Please sign in to comment.