diff --git a/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java b/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java index 7fef920..deaa65f 100644 --- a/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java +++ b/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java @@ -4,7 +4,6 @@ import cn.hutool.core.exceptions.ExceptionUtil; import cn.hutool.core.io.FileUtil; import cn.hutool.core.io.IoUtil; import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.StrUtil; import im.zhaojun.zfile.core.constant.ZFileConstant; import im.zhaojun.zfile.core.exception.file.init.InitializeStorageSourceException; @@ -117,10 +116,6 @@ public class LocalServiceImpl extends AbstractProxyTransferService { @Override public boolean deleteFile(String path, String name) { - log.error("删除文件: {}", path + name); - if (RandomUtil.randomBoolean()) { - throw new RuntimeException("模拟删除失败"); - } String fullPath = StringUtils.concat(param.getFilePath(), path, name); return FileUtil.del(fullPath); }