mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-19 07:44:23 +01:00
Fixed logging to JULI
Former-commit-id: b8155251fa7120e33a042115f36ecac05fc7dce2
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.owasp.dependencycheck.analyzer;
|
package org.owasp.dependencycheck.analyzer;
|
||||||
|
|
||||||
import org.mortbay.log.Log;
|
|
||||||
import org.owasp.dependencycheck.analyzer.exception.AnalysisException;
|
import org.owasp.dependencycheck.analyzer.exception.AnalysisException;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@@ -36,6 +35,8 @@ import org.owasp.dependencycheck.dependency.Dependency;
|
|||||||
import org.owasp.dependencycheck.dependency.Evidence;
|
import org.owasp.dependencycheck.dependency.Evidence;
|
||||||
import org.owasp.dependencycheck.utils.Settings;
|
import org.owasp.dependencycheck.utils.Settings;
|
||||||
|
|
||||||
|
import com.sun.istack.internal.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for the AssemblyAnalyzer.
|
* Tests for the AssemblyAnalyzer.
|
||||||
*
|
*
|
||||||
@@ -43,6 +44,8 @@ import org.owasp.dependencycheck.utils.Settings;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class AssemblyAnalyzerTest {
|
public class AssemblyAnalyzerTest {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = Logger.getLogger(AssemblyAnalyzerTest.class);
|
||||||
|
|
||||||
AssemblyAnalyzer analyzer;
|
AssemblyAnalyzer analyzer;
|
||||||
|
|
||||||
@@ -57,7 +60,7 @@ public class AssemblyAnalyzerTest {
|
|||||||
analyzer = new AssemblyAnalyzer();
|
analyzer = new AssemblyAnalyzer();
|
||||||
analyzer.initialize();
|
analyzer.initialize();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.warn("Exception setting up AssemblyAnalyzer. Tests will be incomplete");
|
LOGGER.warning("Exception setting up AssemblyAnalyzer. Tests will be incomplete", e);
|
||||||
Assume.assumeNoException("Is mono installed? TESTS WILL BE INCOMPLETE", e);
|
Assume.assumeNoException("Is mono installed? TESTS WILL BE INCOMPLETE", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user