update logger

This commit is contained in:
CaiHQ 2023-02-08 14:18:06 +08:00
parent f6c2e9e445
commit 74fcf39094
2 changed files with 12 additions and 9 deletions

View File

@ -131,18 +131,18 @@ publishing {
maven { maven {
name 'bdwareSnapshotRepository' name 'bdwareSnapshotRepository'
url 'https://oss.sonatype.org/content/repositories/snapshots' url 'https://oss.sonatype.org/content/repositories/snapshots'
// credentials { credentials {
// username = "${NEXUS_USERNAME}" username = "${NEXUS_USERNAME}"
// password = "${NEXUS_PASSWORD}" password = "${NEXUS_PASSWORD}"
// } }
} }
maven { maven {
name 'bdwareRepository' name 'bdwareRepository'
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2' url 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
// credentials { credentials {
// username = "${NEXUS_USERNAME}" username = "${NEXUS_USERNAME}"
// password = "${NEXUS_PASSWORD}" password = "${NEXUS_PASSWORD}"
// } }
} }
} }
} }

View File

@ -1,11 +1,14 @@
package org.bdware.sc.bean; package org.bdware.sc.bean;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.bdware.doip.codec.operations.BasicOperations; import org.bdware.doip.codec.operations.BasicOperations;
import org.bdware.sc.node.AnnotationNode; import org.bdware.sc.node.AnnotationNode;
import org.bdware.sc.node.ContractNode; import org.bdware.sc.node.ContractNode;
import org.bdware.sc.util.JsonUtil; import org.bdware.sc.util.JsonUtil;
public class DoipOperationInfo { public class DoipOperationInfo {
static Logger LOGGER = LogManager.getLogger(DoipOperationInfo.class);
public String operationType; public String operationType;
public String operationName; public String operationName;
public BasicOperations operation; public BasicOperations operation;
@ -32,7 +35,7 @@ public class DoipOperationInfo {
info.operationName = info.operation.getName(); info.operationName = info.operation.getName();
} }
} }
System.out.println("[DoipOperationInfo] annotationNode:" + JsonUtil.toJson(annotationNode)); LOGGER.info("[DoipOperationInfo] annotationNode:" + JsonUtil.toJson(annotationNode));
return info; return info;
} }
} }