mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-13 23:33:37 +01:00
corrected logging statements
Former-commit-id: 55ebf05bbf831c8e87ca8f5b9b74d18e1cfa252c
This commit is contained in:
@@ -191,7 +191,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
|
||||
try {
|
||||
engine = initializeEngine();
|
||||
} catch (DatabaseException ex) {
|
||||
Logger.getLogger(CheckMojo.class.getName()).log(Level.SEVERE, null, ex);
|
||||
LOGGER.log(Level.FINE, "Database connection error", ex);
|
||||
throw new MojoExecutionException("An exception occured connecting to the local database. Please see the log file for more details.", ex);
|
||||
}
|
||||
scanArtifacts(getProject(), engine);
|
||||
|
||||
@@ -77,7 +77,7 @@ public class CheckMojo extends BaseDependencyCheckMojo {
|
||||
try {
|
||||
engine = initializeEngine();
|
||||
} catch (DatabaseException ex) {
|
||||
Logger.getLogger(CheckMojo.class.getName()).log(Level.SEVERE, null, ex);
|
||||
LOGGER.log(Level.FINE, "Database connection error", ex);
|
||||
throw new MojoExecutionException("An exception occured connecting to the local database. Please see the log file for more details.", ex);
|
||||
}
|
||||
scanArtifacts(getProject(), engine);
|
||||
|
||||
Reference in New Issue
Block a user