Skip to content

Commit 2df88c5

Browse files
committed
feat(backup): change log level debug to trace
This is done to reduce the verbosity of the logs in debug mode as the backup logic will log multiple statements for every operation affecting channels or databases such as a swap.
1 parent fa7b13c commit 2df88c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/backup/Backup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Backup extends EventEmitter {
117117
this.logger.info(`Listening to ${currency} LND channel backups`);
118118

119119
lndClient.on('channelBackup', (channelBackup) => {
120-
this.logger.debug(`New ${lndClient.currency} channel backup`);
120+
this.logger.trace(`New ${lndClient.currency} channel backup`);
121121
this.writeBackup(backupPath, channelBackup);
122122
});
123123
lndClient.on('channelBackupEnd', async () => {
@@ -169,7 +169,7 @@ class Backup extends EventEmitter {
169169
// Compare the MD5 hash of the current content of the file with hash of the content when
170170
// it was backed up the last time to ensure that the content of the file has changed
171171
if (hash !== previousDatabaseHash) {
172-
this.logger.debug(`${client} database changed`);
172+
this.logger.trace(`${client} database changed`);
173173

174174
previousDatabaseHash = hash;
175175
this.writeBackup(backupPath, content);

0 commit comments

Comments
 (0)