1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Use const/let now we use node 4.2

This commit is contained in:
Chocobozzz 2016-03-16 22:29:27 +01:00
parent 5101105ef9
commit f0f5567b69
36 changed files with 424 additions and 432 deletions

View file

@ -1,13 +1,13 @@
// Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/
'use strict'
var config = require('config')
var path = require('path')
var winston = require('winston')
const config = require('config')
const path = require('path')
const winston = require('winston')
winston.emitErrs = true
var logDir = path.join(__dirname, '..', '..', config.get('storage.logs'))
var logger = new winston.Logger({
const logDir = path.join(__dirname, '..', '..', config.get('storage.logs'))
const logger = new winston.Logger({
transports: [
new winston.transports.File({
level: 'debug',