优化代码, 增强健壮性

This commit is contained in:
zhaojun1998
2020-01-29 12:52:07 +08:00
parent 90cd13f2c3
commit cfacd39210
4 changed files with 12 additions and 8 deletions

View File

@@ -63,7 +63,9 @@ public class AdminController {
StorageTypeEnum currentStorageStrategy = currentFileService.getStorageTypeEnum();
if (!Objects.equals(currentStorageStrategy, systemConfigDTO.getStorageStrategy())) {
log.info("已将存储策略由 {} 切换为 {}", currentStorageStrategy, systemConfigDTO.getStorageStrategy());
log.info("已将存储策略由 {} 切换为 {}",
currentStorageStrategy.getDescription(),
systemConfigDTO.getStorageStrategy().getDescription());
refreshStorageStrategy();
}