Skip to content

Commit

Permalink
Reduce some logging (#1451)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson authored Dec 7, 2024
1 parent 116700a commit 941e1ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ public EzspVersionResponse getVersion() {
logger.debug("No response from ezspVersion command");
return null;
}
logger.debug(response.toString());
lastStatus = null;

return response;
Expand Down Expand Up @@ -528,7 +527,7 @@ public EzspStatus setConfiguration(EzspConfigId configId, Integer value) {
EzspSetConfigurationValueRequest request = new EzspSetConfigurationValueRequest();
request.setConfigId(configId);
request.setValue(value);
logger.debug(request.toString());
logger.trace(request.toString());

EzspTransaction transaction = protocolHandler.sendEzspTransaction(
new EzspSingleResponseTransaction(request, EzspSetConfigurationValueResponse.class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public void run() {
responseFrame = new AshFrameNak(ackNum);
}
} else {
logger.debug("<-- RX ASH frame: {}", packet);
logger.trace("<-- RX ASH frame: {}", packet);

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

// Send the data
int[] outputBuffer = ashFrame.getOutputBuffer();
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.getIeeeAddress(), transaction);
logger.trace("{}: Sending {}", transaction.getIeeeAddress(), transaction);
addTransactionListener(transaction);
networkManager.sendCommand(transaction.startTransaction());
}
Expand Down Expand Up @@ -520,7 +520,7 @@ protected ScheduledFuture<?> scheduleTask(Runnable runnableTask, long delay) {
* @param state the {@link TransactionState} of the transaction on completion
*/
protected void transactionComplete(ZigBeeTransaction transaction, TransactionState state) {
logger.debug("Transaction complete: {}", transaction);
logger.trace("Transaction complete: {}", transaction);
removeTransactionListener(transaction);

if (isShutdown) {
Expand Down Expand Up @@ -555,7 +555,7 @@ protected void transactionComplete(ZigBeeTransaction transaction, TransactionSta
* @param command the {@link ZigBeeCommand} to send to the transactions
*/
private void notifyTransactionCommand(final ZigBeeCommand command) {
logger.debug("notifyTransactionCommand: {} ", command);
logger.trace("notifyTransactionCommand: {} ", command);
synchronized (outstandingTransactions) {
// Notify the listeners
for (final ZigBeeTransaction transaction : outstandingTransactions) {
Expand Down Expand Up @@ -615,7 +615,7 @@ public void removeNode(IeeeAddress address) {
}
queue.shutdown();

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

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

0 comments on commit 941e1ef

Please sign in to comment.