Skip to content

Commit 9b288f5

Browse files
committed
Reduce some logging
Signed-off-by: Chris Jackson <[email protected]>
1 parent 116700a commit 9b288f5

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/EmberNcp.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ public EzspVersionResponse getVersion() {
225225
logger.debug("No response from ezspVersion command");
226226
return null;
227227
}
228-
logger.debug(response.toString());
229228
lastStatus = null;
230229

231230
return response;
@@ -528,7 +527,7 @@ public EzspStatus setConfiguration(EzspConfigId configId, Integer value) {
528527
EzspSetConfigurationValueRequest request = new EzspSetConfigurationValueRequest();
529528
request.setConfigId(configId);
530529
request.setValue(value);
531-
logger.debug(request.toString());
530+
logger.trace(request.toString());
532531

533532
EzspTransaction transaction = protocolHandler.sendEzspTransaction(
534533
new EzspSingleResponseTransaction(request, EzspSetConfigurationValueResponse.class));

com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/internal/ash/AshFrameHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public void run() {
285285
responseFrame = new AshFrameNak(ackNum);
286286
}
287287
} else {
288-
logger.debug("<-- RX ASH frame: {}", packet);
288+
logger.trace("<-- RX ASH frame: {}", packet);
289289

290290
// Reset the exception counter
291291
exceptionCnt = 0;
@@ -568,7 +568,7 @@ private void sendRetry() {
568568
// Synchronize this method to ensure a packet gets sent as a block
569569
private synchronized void outputFrame(AshFrame ashFrame) {
570570
ashFrame.setAckNum(ackNum);
571-
logger.debug("--> TX ASH frame: {}", ashFrame);
571+
logger.trace("--> TX ASH frame: {}", ashFrame);
572572

573573
// Send the data
574574
int[] outputBuffer = ashFrame.getOutputBuffer();

com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/transaction/ZigBeeTransactionManager.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ private void send(ZigBeeTransaction transaction) {
447447
if (transaction.getTransactionId() == null) {
448448
transaction.setTransactionId(transactionIdCounter.getAndIncrement() & 0xff);
449449
}
450-
logger.debug("{}: Sending {}", transaction.getIeeeAddress(), transaction);
450+
logger.trace("{}: Sending {}", transaction.getIeeeAddress(), transaction);
451451
addTransactionListener(transaction);
452452
networkManager.sendCommand(transaction.startTransaction());
453453
}
@@ -520,7 +520,7 @@ protected ScheduledFuture<?> scheduleTask(Runnable runnableTask, long delay) {
520520
* @param state the {@link TransactionState} of the transaction on completion
521521
*/
522522
protected void transactionComplete(ZigBeeTransaction transaction, TransactionState state) {
523-
logger.debug("Transaction complete: {}", transaction);
523+
logger.trace("Transaction complete: {}", transaction);
524524
removeTransactionListener(transaction);
525525

526526
if (isShutdown) {
@@ -555,7 +555,7 @@ protected void transactionComplete(ZigBeeTransaction transaction, TransactionSta
555555
* @param command the {@link ZigBeeCommand} to send to the transactions
556556
*/
557557
private void notifyTransactionCommand(final ZigBeeCommand command) {
558-
logger.debug("notifyTransactionCommand: {} ", command);
558+
logger.trace("notifyTransactionCommand: {} ", command);
559559
synchronized (outstandingTransactions) {
560560
// Notify the listeners
561561
for (final ZigBeeTransaction transaction : outstandingTransactions) {
@@ -615,7 +615,7 @@ public void removeNode(IeeeAddress address) {
615615
}
616616
queue.shutdown();
617617

618-
logger.debug("{}: Removing queue from transaction manager", address);
618+
logger.trace("{}: Removing queue from transaction manager", address);
619619

620620
// Remove any outstanding transactions from this queue that have already been sent
621621
synchronized (outstandingTransactions) {
@@ -639,7 +639,7 @@ public void removeNode(IeeeAddress address) {
639639
*/
640640
private void sendNextTransaction() {
641641
synchronized (this) {
642-
logger.debug(
642+
logger.trace(
643643
"Transaction Manager: Send Next transaction. outstandingTransactions={}, outstandingQueues={}, sleepy={}/{}",
644644
outstandingTransactions.size(), outstandingQueues.size(), sleepyTransactions,
645645
maxSleepyTransactions);

0 commit comments

Comments
 (0)