Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change warnings to info or debug #874

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,19 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
if (optionsFile.exists() && jvmOptionsPath == null) {
// if using pre-existing installation, do not delete file
if (project.liberty.installDir == null) {
logger.warn(optionsFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
logger.info(optionsFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
optionsFile.delete();
}
}
if((server.jvmOptions != null && !server.jvmOptions.isEmpty()) || !jvmProjectProps.isEmpty()){
if (jvmOptionsPath != null) {
logger.warn("The " + jvmOptionsPath + " file is overwritten by inlined configuration.")
logger.info("The " + jvmOptionsPath + " file is overwritten by inlined configuration.")
}
writeJvmOptions(optionsFile, server.jvmOptions, jvmProjectProps)
jvmOptionsPath = "inlined configuration"
} else if (server.jvmOptionsFile != null && server.jvmOptionsFile.exists()) {
if (jvmOptionsPath != null) {
logger.warn("The " + jvmOptionsPath + " file is overwritten by the " + server.jvmOptionsFile.getCanonicalPath() + " file.");
logger.info("The " + jvmOptionsPath + " file is overwritten by the " + server.jvmOptionsFile.getCanonicalPath() + " file.");
}
Files.copy(server.jvmOptionsFile.toPath(), optionsFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
jvmOptionsPath = server.jvmOptionsFile.getCanonicalPath()
Expand All @@ -323,19 +323,19 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
if (bootstrapFile.exists() && bootStrapPropertiesPath == null) {
// if using pre-existing installation, do not delete file
if (project.liberty.installDir == null) {
logger.warn(bootstrapFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
logger.info(bootstrapFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
bootstrapFile.delete();
}
}
if((server.bootstrapProperties != null && !server.bootstrapProperties.isEmpty()) || !bootstrapProjectProps.isEmpty()){
if (bootStrapPropertiesPath != null) {
logger.warn("The " + bootStrapPropertiesPath + " file is overwritten by inlined configuration.")
logger.info("The " + bootStrapPropertiesPath + " file is overwritten by inlined configuration.")
}
writeBootstrapProperties(bootstrapFile, server.bootstrapProperties, bootstrapProjectProps)
bootStrapPropertiesPath = "inlined configuration"
} else if (server.bootstrapPropertiesFile != null && server.bootstrapPropertiesFile.exists()) {
if (bootStrapPropertiesPath != null) {
logger.warn("The " + bootStrapPropertiesPath + " file is overwritten by the " + server.bootstrapPropertiesFile.getCanonicalPath() + " file.")
logger.info("The " + bootStrapPropertiesPath + " file is overwritten by the " + server.bootstrapPropertiesFile.getCanonicalPath() + " file.")
}
Files.copy(server.bootstrapPropertiesFile.toPath(), bootstrapFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
bootStrapPropertiesPath = server.bootstrapPropertiesFile.getCanonicalPath()
Expand All @@ -347,7 +347,7 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
// generate a config file on the server with any Liberty configuration variables specified via project properties
File pluginVariableConfig = new File(serverDirectory, PLUGIN_VARIABLE_CONFIG_OVERRIDES_XML)
if (pluginVariableConfig.exists()) {
logger.warn(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
logger.debug(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
pluginVariableConfig.delete();
}
if ((server.var != null && !server.var.isEmpty()) || !varProjectProps.isEmpty()) {
Expand All @@ -358,7 +358,7 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
// generate a config file on the server with any Liberty configuration default variables specified via project properties
pluginVariableConfig = new File(serverDirectory, PLUGIN_VARIABLE_CONFIG_DEFAULTS_XML)
if (pluginVariableConfig.exists()) {
logger.warn(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
logger.debug(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
pluginVariableConfig.delete();
}
if ((server.defaultVar != null && !server.defaultVar.isEmpty()) || !defaultVarProjectProps.isEmpty()) {
Expand Down
Loading