fix log path error. #168

This commit is contained in:
hengyunabc 2018-09-27 18:54:42 +08:00
parent 0b135d8290
commit c2c54743f0

View File

@ -35,9 +35,9 @@ public class AgentBootstrap {
static {
try {
File log = new File(System.getProperty("user.home") + File.separator + "logs" + File.separator
+ ".arthas" + File.separator + "arthas.log");
+ "arthas" + File.separator + "arthas.log");
if (!log.exists()) {
log.getParentFile().mkdir();
log.getParentFile().mkdirs();
log.createNewFile();
}
ps = new PrintStream(new FileOutputStream(log, true));