Skip to content

Commit 1487775

Browse files
author
丁建水
committed
add some log ,update pom version to 1.1.0
1 parent f2b70ca commit 1487775

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ target/maven-archiver/pom.properties
1616
.classpath
1717
/target
1818
/.settings
19+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.dingjsh</groupId>
66
<artifactId>javaagent</artifactId>
7-
<version>1.0.5</version>
7+
<version>1.1.0</version>
88
<packaging>jar</packaging>
99

1010
<properties>

src/com/thunisoft/agent/log/ExecuteLogUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ private static void initWriter() {
240240
new FileOutputStream(logFile, true), ENCODING), BUFFER_SIZE);
241241
} catch (IOException e) {
242242
System.err.println(e);
243+
throw new RuntimeException("无法初始化【"+logFileName+"】,建议您检查磁盘空间,或者手动删除该日志文件");
243244
}
244245
}
245246

src/com/thunisoft/agent/log/OutputLogRunnable.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ public class OutputLogRunnable implements Runnable {
2121
*/
2222
@Override
2323
public void run() {
24-
ExecuteLogUtils.outputCounterLog();
25-
24+
try{
25+
ExecuteLogUtils.outputCounterLog();
26+
}catch(Exception e){
27+
System.err.println(e);
28+
}
2629
}
2730

2831
}

0 commit comments

Comments
 (0)