Skip to content

Commit

Permalink
Unhealthy node info (hashgraph#1605)
Browse files Browse the repository at this point in the history
* add logger debug info about unhealthy nodes

Signed-off-by: Petar Tonev <[email protected]>

* after build

Signed-off-by: Petar Tonev <[email protected]>

* refactor a bit the message and test the logger functionality

Signed-off-by: Petar Tonev <[email protected]>

---------

Signed-off-by: Petar Tonev <[email protected]>
  • Loading branch information
petreze authored May 11, 2023
1 parent f2bfb62 commit 79a5858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Executable.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,9 @@ export default class Executable {
) {
// Increase the backoff for the particular node and remove it from
// the healthy node list
Logger.debug(
`[${this._getLogId()}] node with accountId: ${node.accountId.toString()} and proxy IP: ${node.address.toString()} is unhealthy`
);
client._network.increaseBackoff(node);
continue;
}
Expand Down

0 comments on commit 79a5858

Please sign in to comment.