Skip to content

Commit

Permalink
Convert to log error
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaiyarasiganeshalingam committed Nov 24, 2024
1 parent 9a3091c commit b009d87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public ConfigDeployer() {
}

@Override
public void deployArtifacts(CarbonApplication carbonApp, AxisConfiguration axisConfig) throws DeploymentException {
public void deployArtifacts(CarbonApplication carbonApp, AxisConfiguration axisConfig)
throws DeploymentException {
if (log.isDebugEnabled()) {
log.debug("Deploying properties - " + carbonApp.getAppName());
}
Expand All @@ -83,7 +84,8 @@ public void deployArtifacts(CarbonApplication carbonApp, AxisConfiguration axisC
}

@Override
public void undeployArtifacts(CarbonApplication carbonApp, AxisConfiguration axisConfig) throws DeploymentException {
public void undeployArtifacts(CarbonApplication carbonApp, AxisConfiguration axisConfig)
throws DeploymentException {

}

Expand Down Expand Up @@ -113,7 +115,7 @@ private void writePropertyToMap(Artifact artifact) {
}

private void processConfFile(String integrationName, String configFilePath, String globalPropertiesFilePath,
String serverConfPropertyPath) {
String serverConfPropertyPath) {
File configFile = new File(configFilePath);
// Load capp conf property file
Properties configProperties = loadPropertiesFromFile(configFile);
Expand Down Expand Up @@ -190,7 +192,8 @@ private void deployCert(String key, String path) {
log.info("Truststore updated successfully at: " + trustStorePath);
}
} else {
log.info(String.format("The trust store already contains a certificate with the alias [%s].", key));
log.info(String.format("The trust store already contains a certificate " +
"with the alias [%s].", key));
}
} catch (FileNotFoundException e) {
log.error(String.format("File not found for importing the certificate: %s", key));
Expand All @@ -214,7 +217,8 @@ private void writeServerConfFile(String file, Properties newServerConfigProperti
writer.write(key + ":" + value + "\n");
}
} catch (IOException e) {
System.err.println("Failed to add the config.properties file to the server conf folder: " + e.getMessage());
log.error("Failed to add the config.properties file to the server conf folder: "
+ e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -138,7 +135,6 @@ public synchronized void startServerUsingCarbonHome(String carbonHome, Map<Strin
}

cmdArray = mergePropertiesToCommandArray(parameters, cmdArray);

process = Runtime.getRuntime().exec(cmdArray, null, commandDir);
}

Expand Down

0 comments on commit b009d87

Please sign in to comment.