platform-messaging QueueConsumer уточнил stacktrace в логе при вызове Init.
This commit is contained in:
parent
c2f463a1a7
commit
3b33a57218
1 changed files with 3 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ public class QueueConsumer implements AutoCloseable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
|
final Exception debugCallerStacktrace = new Exception("init call");
|
||||||
inputExecutor.submit(() -> {
|
inputExecutor.submit(() -> {
|
||||||
try {
|
try {
|
||||||
log.debug("Using kafka consumer {} for subscribe on \"{}\"", consumer, callbacks.keySet());
|
log.debug("Using kafka consumer {} for subscribe on \"{}\"", consumer, callbacks.keySet());
|
||||||
|
|
@ -128,7 +129,8 @@ public class QueueConsumer implements AutoCloseable {
|
||||||
} catch (WakeupException e) {
|
} catch (WakeupException e) {
|
||||||
if (!closed.get()) throw e;
|
if (!closed.get()) throw e;
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
log.error(ExceptionUtils.getStackTrace(e));
|
log.error("QueueConsumer error: {}; main thread stacktrace: {}",
|
||||||
|
ExceptionUtils.getStackTrace(e), ExceptionUtils.getStackTrace(debugCallerStacktrace));
|
||||||
} finally {
|
} finally {
|
||||||
consumer.close();
|
consumer.close();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue