diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-12 17:15:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-12 17:15:38 +0100 |
commit | 2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2 (patch) | |
tree | f6890c9f7acbccb05157c876c20b0f684eb80836 /server/helpers/logger.ts | |
parent | 22a73cb879a5cc775d4bec3d72fa9c9cf52e5175 (diff) | |
download | PeerTube-2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2.tar.gz PeerTube-2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2.tar.zst PeerTube-2f6b5e2d6ebcac88d9005ea2654ffa77907d5db2.zip |
Add max file size, max files and ip anonymize log options
Diffstat (limited to 'server/helpers/logger.ts')
-rw-r--r-- | server/helpers/logger.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index c2ff2bae6..395417612 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts | |||
@@ -67,9 +67,9 @@ const fileLoggerOptions: FileTransportOptions = { | |||
67 | ) | 67 | ) |
68 | } | 68 | } |
69 | 69 | ||
70 | if (CONFIG.LOG.ROTATION) { | 70 | if (CONFIG.LOG.ROTATION.ENABLED) { |
71 | fileLoggerOptions.maxsize = 1024 * 1024 * 12 | 71 | fileLoggerOptions.maxsize = CONFIG.LOG.ROTATION.MAX_FILE_SIZE |
72 | fileLoggerOptions.maxFiles = 20 | 72 | fileLoggerOptions.maxFiles = CONFIG.LOG.ROTATION.MAX_FILES |
73 | } | 73 | } |
74 | 74 | ||
75 | const logger = winston.createLogger({ | 75 | const logger = winston.createLogger({ |