Skip to content

Commit 2669f67

Browse files
authored
Vijay work (#278)
Minor changes to not write too many traces.
1 parent 2d644a1 commit 2669f67

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

azure-servicebus/src/main/java/com/microsoft/azure/servicebus/amqp/LoggingHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.apache.qpid.proton.engine.BaseHandler;
44
import org.apache.qpid.proton.engine.Event;
5+
import org.apache.qpid.proton.engine.Event.Type;
56
import org.slf4j.Logger;
67
import org.slf4j.LoggerFactory;
78

@@ -11,7 +12,7 @@ public class LoggingHandler extends BaseHandler {
1112
@Override
1213
public void onUnhandled(Event event)
1314
{
14-
if(TRACE_LOGGER.isTraceEnabled())
15+
if(TRACE_LOGGER.isTraceEnabled() && event.getType() != Type.REACTOR_QUIESCED ) // Too may REACTOR_QUIESCED events will be raised
1516
{
1617
TRACE_LOGGER.trace("Event raised by protonj: {}", event.toString());
1718
}

azure-servicebus/src/main/java/com/microsoft/azure/servicebus/amqp/ReactorHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public void onReactorInit(Event e)
2525
reactor.setTimeout(ClientConstants.REACTOR_IO_POLL_TIMEOUT);
2626
}
2727

28-
@Override public void onReactorFinal(Event e)
28+
@Override
29+
public void onReactorFinal(Event e)
2930
{
3031
TRACE_LOGGER.debug("reactor.onReactorFinal");
3132
}

0 commit comments

Comments
 (0)