diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-16 22:29:27 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-16 22:29:27 +0100 |
commit | f0f5567b6918fc60c8cab15e13aec03a89a91dfb (patch) | |
tree | 99dfdb9fa8273c9cda1360fd3b6bfccc515bf8be /server/helpers/logger.js | |
parent | 5101105ef91bfe478f97546b78b321882da2079c (diff) | |
download | PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.gz PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.zst PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.zip |
Use const/let now we use node 4.2
Diffstat (limited to 'server/helpers/logger.js')
-rw-r--r-- | server/helpers/logger.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/helpers/logger.js b/server/helpers/logger.js index 1c15a0edd..d3fce4cc9 100644 --- a/server/helpers/logger.js +++ b/server/helpers/logger.js | |||
@@ -1,13 +1,13 @@ | |||
1 | // Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/ | 1 | // Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/ |
2 | 'use strict' | 2 | 'use strict' |
3 | 3 | ||
4 | var config = require('config') | 4 | const config = require('config') |
5 | var path = require('path') | 5 | const path = require('path') |
6 | var winston = require('winston') | 6 | const winston = require('winston') |
7 | winston.emitErrs = true | 7 | winston.emitErrs = true |
8 | 8 | ||
9 | var logDir = path.join(__dirname, '..', '..', config.get('storage.logs')) | 9 | const logDir = path.join(__dirname, '..', '..', config.get('storage.logs')) |
10 | var logger = new winston.Logger({ | 10 | const logger = new winston.Logger({ |
11 | transports: [ | 11 | transports: [ |
12 | new winston.transports.File({ | 12 | new winston.transports.File({ |
13 | level: 'debug', | 13 | level: 'debug', |