Skip to content

Commit d00df5d

Browse files
committed
修复采集器在log4j不能心跳自启的bug
1 parent 098043a commit d00df5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ allprojects {
44
apply plugin: 'eclipse'
55

66
group = 'skyeye'
7-
version = '1.2.1'
7+
version = '1.2.2'
88

99
sourceCompatibility = 1.8
1010
targetCompatibility = 1.8

skyeye-client/skyeye-client-log4j/src/main/java/com/jthink/skyeye/client/log4j/appender/KafkaAppender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void onCompletion(RecordMetadata recordMetadata, Exception e) {
148148
if (flag.get() == true) {
149149
KafkaAppender.this.heartbeatStart();
150150
zkRegister.write(Constants.SLASH + app + Constants.SLASH + host, NodeMode.EPHEMERAL,
151-
String.valueOf(Constants.APP_APPENDER_RESTART_KEY + Constants.SEMICOLON + System.currentTimeMillis()) + Constants.SEMICOLON + SysUtil.userDir);
151+
String.valueOf(Constants.APP_APPENDER_STOP_KEY + Constants.SEMICOLON + System.currentTimeMillis()) + Constants.SEMICOLON + SysUtil.userDir);
152152
flag.compareAndSet(true, false);
153153
}
154154
}

0 commit comments

Comments
 (0)