Skip to content

Commit

Permalink
feat(db/checkPointV2Store): change log level from info to debug for c…
Browse files Browse the repository at this point in the history
…lose (#5499)
  • Loading branch information
halibobo1205 authored Sep 18, 2023
1 parent 5e420e4 commit 47fe702
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions chainbase/src/main/java/org/tron/core/store/CheckPointV2Store.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.tron.core.store;

import com.google.protobuf.InvalidProtocolBufferException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.tron.core.db.TronDatabase;
import org.tron.core.exception.BadItemException;
Expand All @@ -9,6 +10,7 @@
import java.util.Spliterator;
import java.util.function.Consumer;

@Slf4j(topic = "DB")
public class CheckPointV2Store extends TronDatabase<byte[]> {

@Autowired
Expand Down Expand Up @@ -50,4 +52,19 @@ public Spliterator spliterator() {
protected void init() {
}

/**
* close the database.
*/
@Override
public void close() {
logger.debug("******** Begin to close {}. ********", getName());
try {
dbSource.closeDB();
} catch (Exception e) {
logger.warn("Failed to close {}.", getName(), e);
} finally {
logger.debug("******** End to close {}. ********", getName());
}
}

}

0 comments on commit 47fe702

Please sign in to comment.