Meituan-Dianping / Logan

Logan is a lightweight case logging system based on mobile platform.
https://tech.meituan.com/logan_open_source.html
MIT License
5.73k stars 876 forks source link

LoganServer 文件路径创建失败是什么原因? #520

Open MillionGao opened 4 months ago

MillionGao commented 4 months ago

{ "code": 500, "msg": "ERROR_LOG_PATH", "data": null }

mircotom commented 4 months ago

看代码是这样的: File file = FileUtil.createNewFile(fileName); if (file == null) { return ResultEnum.ERROR_LOG_PATH; } 估摸着可能是读写权限的问题吧。