Skip to content

Commit

Permalink
Add conditional logging in onQuery function
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYBYME committed Dec 18, 2023
1 parent 2220ded commit 50eb1fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/ddns.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ module.exports = {
}
}).catch((err) => {
this.stats.errors++;
this.logger.error('onQuery', err)
if (this.config['ddns.logging'])
this.logger.error('onQuery', err)
})
}
});
Expand Down

0 comments on commit 50eb1fd

Please sign in to comment.