fix the permission issue of capture log files