Skip to content

Commit

Permalink
Added additional logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
XHunter74 committed Aug 12, 2024
1 parent 2422cb6 commit efbf635
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Connection extends EventEmitter {

try {
response = decrypt(message.pack, key);
this.logger.debug(`Decrypted message: ${JSON.stringify(response)}`);
} catch {
this.logger.error(`Can not decrypt message from ${message.cid} (${rinfo.address}:${rinfo.port}) with key ${key}`);
this.logger.debug(message.pack);
Expand Down

0 comments on commit efbf635

Please sign in to comment.