From 74fcf39094e18a80e9eacd313544334b085f3787 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Wed, 8 Feb 2023 14:18:06 +0800 Subject: [PATCH] update logger --- build.gradle | 16 ++++++++-------- .../org/bdware/sc/bean/DoipOperationInfo.java | 5 ++++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index e5ddc72..ac0055f 100644 --- a/build.gradle +++ b/build.gradle @@ -131,18 +131,18 @@ publishing { maven { name 'bdwareSnapshotRepository' url 'https://oss.sonatype.org/content/repositories/snapshots' -// credentials { -// username = "${NEXUS_USERNAME}" -// password = "${NEXUS_PASSWORD}" -// } + credentials { + username = "${NEXUS_USERNAME}" + password = "${NEXUS_PASSWORD}" + } } maven { name 'bdwareRepository' url 'https://oss.sonatype.org/service/local/staging/deploy/maven2' -// credentials { -// username = "${NEXUS_USERNAME}" -// password = "${NEXUS_PASSWORD}" -// } + credentials { + username = "${NEXUS_USERNAME}" + password = "${NEXUS_PASSWORD}" + } } } } diff --git a/src/main/entry/org/bdware/sc/bean/DoipOperationInfo.java b/src/main/entry/org/bdware/sc/bean/DoipOperationInfo.java index 72f6bdd..3c5b2eb 100644 --- a/src/main/entry/org/bdware/sc/bean/DoipOperationInfo.java +++ b/src/main/entry/org/bdware/sc/bean/DoipOperationInfo.java @@ -1,11 +1,14 @@ 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.sc.node.AnnotationNode; import org.bdware.sc.node.ContractNode; import org.bdware.sc.util.JsonUtil; public class DoipOperationInfo { + static Logger LOGGER = LogManager.getLogger(DoipOperationInfo.class); public String operationType; public String operationName; public BasicOperations operation; @@ -32,7 +35,7 @@ public class DoipOperationInfo { info.operationName = info.operation.getName(); } } - System.out.println("[DoipOperationInfo] annotationNode:" + JsonUtil.toJson(annotationNode)); + LOGGER.info("[DoipOperationInfo] annotationNode:" + JsonUtil.toJson(annotationNode)); return info; } }