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:
parent
5101105ef9
commit
f0f5567b69
36 changed files with 424 additions and 432 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue