projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
817025f
)
unsubscribe() im Fehlerfall ergänzt
author
Kai Moritz
<kai@juplo.de>
Fri, 4 Nov 2022 07:42:48 +0000
(08:42 +0100)
committer
Kai Moritz
<kai@juplo.de>
Fri, 4 Nov 2022 07:42:48 +0000
(08:42 +0100)
src/main/java/de/juplo/kafka/SimpleConsumer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/SimpleConsumer.java
b/src/main/java/de/juplo/kafka/SimpleConsumer.java
index
cab2fb8
..
5557a4d
100644
(file)
--- a/
src/main/java/de/juplo/kafka/SimpleConsumer.java
+++ b/
src/main/java/de/juplo/kafka/SimpleConsumer.java
@@
-75,7
+75,8
@@
public class SimpleConsumer
}
catch(Exception e)
{
- log.error("{} - Unexpected error: {}", id, e.toString());
+ log.error("{} - Unexpected error: {}, unsubscribing!", id, e.toString());
+ consumer.unsubscribe();
}
finally
{