Skip to content

Commit 3cc557e

Browse files
authored
Merge pull request #4656 from halibobo1205/db_log_opt
refactor(db): add detail for init db
2 parents a34d428 + a917354 commit 3cc557e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chainbase/src/main/java/org/tron/common/storage/leveldb/LevelDbDataSourceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void openDatabase(Options dbOptions) throws IOException {
142142
}
143143
} catch (IOException e) {
144144
if (e.getMessage().contains("Corruption:")) {
145-
logger.warn("DB {} corruption detected, try to repair it.", this.getDBName());
145+
logger.warn("DB {} corruption detected, try to repair it.", this.getDBName(), e);
146146
factory.repair(dbPath.toFile(), dbOptions);
147147
logger.warn("DB {} corruption detected, repair done.", this.getDBName());
148148
database = factory.open(dbPath.toFile(), dbOptions);

0 commit comments

Comments
 (0)