mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-04 05:09:54 +08:00
fix log path error. #168
This commit is contained in:
parent
0b135d8290
commit
c2c54743f0
@ -35,9 +35,9 @@ public class AgentBootstrap {
|
|||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
File log = new File(System.getProperty("user.home") + File.separator + "logs" + File.separator
|
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()) {
|
if (!log.exists()) {
|
||||||
log.getParentFile().mkdir();
|
log.getParentFile().mkdirs();
|
||||||
log.createNewFile();
|
log.createNewFile();
|
||||||
}
|
}
|
||||||
ps = new PrintStream(new FileOutputStream(log, true));
|
ps = new PrintStream(new FileOutputStream(log, true));
|
||||||
|
Loading…
Reference in New Issue
Block a user