Add max file size, max files and ip anonymize log options

This commit is contained in:
Chocobozzz
2019-12-12 17:15:38 +01:00
parent 22a73cb879
commit 2f6b5e2d6e
5 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ if (isTestInstance()) {
// For the logger
morgan.token('remote-addr', req => {
if (req.get('DNT') === '1') {
if (CONFIG.LOG.ANONYMIZE_IP === true || req.get('DNT') === '1') {
return anonymize(req.ip, 16, 16)
}