Skip to content
Merged
Show file tree
Hide file tree
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 @@ -196,7 +196,8 @@ private boolean isNodeAuditEnabled(Engine engine) {
try {
((AbstractNpmAnalyzer) a).prepareFileTypeAnalyzer(engine);
} catch (InitializationException ex) {
LOGGER.debug("Error initializing the {}", a.getName());
String message = "Error initializing the " + a.getName();
LOGGER.debug(message, ex);
}
}
return a.isEnabled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,14 @@ protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationExcep
case yarnExecutableNotFoundExitValue:
default:
this.setEnabled(false);
LOGGER.warn("The {} has been disabled. Yarn executable was not found.", getName());
LOGGER.warn("The {} has been disabled after receiving exit value {}. Yarn executable was not " +
"found or received a non-zero exit value.", getName(), exitValue);
}
}
} catch (Exception ex) {
this.setEnabled(false);
LOGGER.warn("The {} has been disabled. Yarn executable was not found.", getName());
LOGGER.warn("The {} has been disabled after receiving an exception. This can occur when Yarn executable " +
"is not found.", getName());
throw new InitializationException("Unable to read yarn audit output.", ex);
}
}
Expand Down