mirror of https://github.com/apache/activemq.git
Add a bit of logging for link and session level events.
This commit is contained in:
parent
2562cf21a2
commit
f0ebda7ef9
|
@ -91,7 +91,7 @@ public class AmqpSession implements AmqpResource {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void open() {
|
public void open() {
|
||||||
LOG.trace("Session {} opened", getSessionId());
|
LOG.debug("Session {} opened", getSessionId());
|
||||||
|
|
||||||
getEndpoint().setContext(this);
|
getEndpoint().setContext(this);
|
||||||
getEndpoint().setIncomingCapacity(Integer.MAX_VALUE);
|
getEndpoint().setIncomingCapacity(Integer.MAX_VALUE);
|
||||||
|
@ -102,7 +102,7 @@ public class AmqpSession implements AmqpResource {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
LOG.trace("Session {} closed", getSessionId());
|
LOG.debug("Session {} closed", getSessionId());
|
||||||
|
|
||||||
getEndpoint().setContext(null);
|
getEndpoint().setContext(null);
|
||||||
getEndpoint().close();
|
getEndpoint().close();
|
||||||
|
@ -157,6 +157,8 @@ public class AmqpSession implements AmqpResource {
|
||||||
ProducerInfo producerInfo = new ProducerInfo(getNextProducerId());
|
ProducerInfo producerInfo = new ProducerInfo(getNextProducerId());
|
||||||
final AmqpReceiver receiver = new AmqpReceiver(this, protonReceiver, producerInfo);
|
final AmqpReceiver receiver = new AmqpReceiver(this, protonReceiver, producerInfo);
|
||||||
|
|
||||||
|
LOG.debug("opening new receiver {} on link: {}", producerInfo.getProducerId(), protonReceiver.getName());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Target target = (Target) remoteTarget;
|
Target target = (Target) remoteTarget;
|
||||||
ActiveMQDestination destination = null;
|
ActiveMQDestination destination = null;
|
||||||
|
@ -213,6 +215,8 @@ public class AmqpSession implements AmqpResource {
|
||||||
ConsumerInfo consumerInfo = new ConsumerInfo(getNextConsumerId());
|
ConsumerInfo consumerInfo = new ConsumerInfo(getNextConsumerId());
|
||||||
final AmqpSender sender = new AmqpSender(this, protonSender, consumerInfo);
|
final AmqpSender sender = new AmqpSender(this, protonSender, consumerInfo);
|
||||||
|
|
||||||
|
LOG.debug("opening new sender {} on link: {}", consumerInfo.getConsumerId(), protonSender.getName());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final Map<Symbol, Object> supportedFilters = new HashMap<Symbol, Object>();
|
final Map<Symbol, Object> supportedFilters = new HashMap<Symbol, Object>();
|
||||||
protonSender.setContext(sender);
|
protonSender.setContext(sender);
|
||||||
|
|
Loading…
Reference in New Issue