Skip to content

Commit

Permalink
Update and reduce some logging (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdjackson authored Sep 25, 2024
1 parent 0d46a58 commit c038c6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private void saveNode(ZigBeeNode node) {

if (deferredWriteTimes.get(node.getIeeeAddress()) != null
&& deferredWriteTimes.get(node.getIeeeAddress()) < System.nanoTime()) {
logger.debug("{}: Data store: Maximum deferred time reached.", node.getIeeeAddress());
logger.trace("{}: Data store: Maximum deferred time reached.", node.getIeeeAddress());

// Run the write immediately.
// This is still run through the scheduler to ensure we don't make
Expand All @@ -269,7 +269,7 @@ private void saveNode(ZigBeeNode node) {
deferredWriteTimes.put(node.getIeeeAddress(), System.nanoTime() + deferredWriteTimeout);
}

logger.debug("{}: Data store: Deferring write for {}ms.", node.getIeeeAddress(), deferredDelay);
logger.trace("{}: Data store: Deferring write for {}ms.", node.getIeeeAddress(), deferredDelay);

CommitNodeTask commitTask = new CommitNodeTask(node);
deferredWriteFutures.put(node.getIeeeAddress(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ private void send(ZigBeeTransaction transaction) {
if (transaction.getTransactionId() == null) {
transaction.setTransactionId(transactionIdCounter.getAndIncrement() & 0xff);
}
logger.debug("{}: Sending {}", transaction.getDestinationAddress(), transaction);
logger.debug("{}: Sending {}", transaction.getIeeeAddress(), transaction);
addTransactionListener(transaction);
networkManager.sendCommand(transaction.startTransaction());
}
Expand Down Expand Up @@ -485,7 +485,7 @@ private void addTransactionListener(ZigBeeTransaction transaction) {
synchronized (outstandingTransactions) {
outstandingTransactions.add(transaction);
}
logger.debug("transactionListenerAdded: {} outstanding", outstandingTransactions.size());
logger.trace("transactionListenerAdded: {} outstanding", outstandingTransactions.size());
}

/**
Expand All @@ -499,7 +499,7 @@ private void removeTransactionListener(ZigBeeTransaction transaction) {
synchronized (outstandingTransactions) {
outstandingTransactions.remove(transaction);
}
logger.debug("transactionListenerRemoved: {} outstanding", outstandingTransactions.size());
logger.trace("transactionListenerRemoved: {} outstanding", outstandingTransactions.size());
}

/**
Expand Down Expand Up @@ -577,7 +577,7 @@ public void run() {
* @param state the current {@link ZigBeeTransportProgressState} for the transaction
*/
private void notifyTransactionProgress(final int transactionId, ZigBeeTransportProgressState state) {
logger.debug("notifyTransactionProgress: TID={}, state={}, outstanding={}",
logger.trace("notifyTransactionProgress: TID={}, state={}, outstanding={}",
String.format("%02X", transactionId), state, outstandingTransactions.size());
synchronized (outstandingTransactions) {
// Notify the listeners
Expand Down

0 comments on commit c038c6f

Please sign in to comment.