corrected logging statements

Former-commit-id: 55ebf05bbf831c8e87ca8f5b9b74d18e1cfa252c
This commit is contained in:
Jeremy Long
2014-12-27 06:55:21 -05:00
parent e0217fc6c3
commit 3bf4cf8c85
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);