mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
corrected logging statements
Former-commit-id: 55ebf05bbf831c8e87ca8f5b9b74d18e1cfa252c
This commit is contained in:
@@ -191,7 +191,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
|
|||||||
try {
|
try {
|
||||||
engine = initializeEngine();
|
engine = initializeEngine();
|
||||||
} catch (DatabaseException ex) {
|
} 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);
|
throw new MojoExecutionException("An exception occured connecting to the local database. Please see the log file for more details.", ex);
|
||||||
}
|
}
|
||||||
scanArtifacts(getProject(), engine);
|
scanArtifacts(getProject(), engine);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public class CheckMojo extends BaseDependencyCheckMojo {
|
|||||||
try {
|
try {
|
||||||
engine = initializeEngine();
|
engine = initializeEngine();
|
||||||
} catch (DatabaseException ex) {
|
} 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);
|
throw new MojoExecutionException("An exception occured connecting to the local database. Please see the log file for more details.", ex);
|
||||||
}
|
}
|
||||||
scanArtifacts(getProject(), engine);
|
scanArtifacts(getProject(), engine);
|
||||||
|
|||||||
Reference in New Issue
Block a user