优化日志输出

This commit is contained in:
zhaojun1998
2020-01-20 21:35:41 +08:00
parent f6163c7e19
commit 9715cf922a
9 changed files with 19 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ public abstract class AbstractFileService extends FileCacheService implements Fi
try {
fileList("/");
} catch (Exception e) {
log.debug(getStorageTypeEnum().getDescription() + "初始化异常", e);
log.debug(getStorageTypeEnum().getDescription() + " 初始化异常", e);
flag = false;
}
return flag;
@@ -95,6 +95,14 @@ public abstract class AbstractFileService extends FileCacheService implements Fi
return !isInitialized;
}
/**
* 获取是否初始化成功
* @return 初始化成功与否
*/
public boolean getIsInitialized() {
return isInitialized;
}
/**
* 获取存储策略类型
* @return 存储策略类型枚举