Don't log content of module.xml when Logger is not initialized
When Logger is not initialized it returns default logger which prints to stdout and stderr, so it can lead to different results when run CLI tests locally and on TC.
This commit is contained in:
@@ -169,7 +169,7 @@ public class CompileEnvironmentUtil {
|
||||
String message = "Source file or directory not found: " + sourceRootPath;
|
||||
|
||||
File moduleFilePath = configuration.get(JVMConfigurationKeys.MODULE_XML_FILE);
|
||||
if (moduleFilePath != null) {
|
||||
if (moduleFilePath != null && Logger.isInitialized()) {
|
||||
String moduleFileContent = FileUtil.loadFile(moduleFilePath);
|
||||
LOG.warn(message +
|
||||
"\n\nmodule file path: " + moduleFilePath +
|
||||
|
||||
Reference in New Issue
Block a user