mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-02 12:17:45 +08:00
fix log path error. #168
This commit is contained in:
parent
0b135d8290
commit
c2c54743f0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user