Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
[refactor][*][*]: optimize the log for cleaner
Browse files Browse the repository at this point in the history
[build][*][*]: delete `mysql-connector-java` from pom
  • Loading branch information
zouxyan committed Jan 23, 2024
1 parent fbb3c7f commit 94e1138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions r-bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<exclusions>
<exclusion>
<artifactId>protobuf-java</artifactId>
<groupId>com.google.protobuf</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alipay.antchain.bridge</groupId>
<artifactId>r-engine</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ public void clean() {
List<BlockchainMeta> stopBlockchains = getStopBlockchains();

for (BlockchainMeta blockchain : stopBlockchains) {
log.info("begin to clean the stopped blockchain {}-{}", blockchain.getProduct(), blockchain.getBlockchainId());
log.debug("begin to clean the stopped blockchain {}-{}", blockchain.getProduct(), blockchain.getBlockchainId());
try {
boolean ifRunning = blockchainClientPool.hasClient(blockchain.getProduct(), blockchain.getBlockchainId());
log.info("blockchain's client {} is running or not: {} ", blockchain.getBlockchainId(), ifRunning);
log.debug("blockchain's client {} is running or not: {} ", blockchain.getBlockchainId(), ifRunning);
if (!ifRunning) {
continue;
}

log.info("begin to clean the stopped blockchain {}-{}", blockchain.getProduct(), blockchain.getBlockchainId());
blockchainClientPool.shutdownClient(blockchain.getProduct(), blockchain.getBlockchainId());

log.info("blockchain's client {} shutdown success.", blockchain.getBlockchainId());
} catch (Throwable e) {
log.error("clean stopped blockchain {} fail.", blockchain.getBlockchainId(), e);
Expand Down

0 comments on commit 94e1138

Please sign in to comment.