去掉slf4j

This commit is contained in:
free will
2021-05-17 15:14:50 +08:00
parent 6685a926d3
commit 0d59c19330
2 changed files with 9 additions and 7 deletions
+4 -3
View File
@@ -1,12 +1,13 @@
package mgmt;
import common.LoggerHelper;
import component.*;
import org.junit.Test;
import org.slf4j.LoggerFactory;
//import org.slf4j.LoggerFactory;
import packet.Interest;
public class CommandBaseTest {
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CommandBaseTest.class);
// private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CommandBaseTest.class);
@Test
public void testCreateAndParseCommand(){
@@ -31,7 +32,7 @@ public class CommandBaseTest {
ControlParameters cp = CommandBase.parseControlParameters(interest);
System.out.println(cp);
}catch (Exception ex){
logger.debug(ex.getMessage());
LoggerHelper.info(ex.getMessage());
}
}
+5 -4
View File
@@ -1,11 +1,12 @@
package mgmt;
import minsecurity.identity.TestIdentity;
//import minsecurity.identity.TestIdentity;
import common.LoggerHelper;
import org.junit.Test;
import org.slf4j.LoggerFactory;
//import org.slf4j.LoggerFactory;
public class ControlResponseTest {
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(ControlResponseTest.class);
// private static final org.slf4j.Logger logger = LoggerFactory.getLogger(ControlResponseTest.class);
@Test
public void testUnmarshal(){
try{
@@ -14,7 +15,7 @@ public class ControlResponseTest {
// Data无法解析
response.UnmarshalJSON(jsonString.getBytes());
}catch (Exception ex){
logger.debug(ex.getMessage());
LoggerHelper.info(ex.getMessage());
}
}