X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Flogger.ts;h=2676133db30df6c258e016990df50205a4cdbce2;hb=01de67b9a4fcdf01102ccc3cb7dc24beebf6c7ea;hp=7c99db55fac3509a8bf531e01f83e528677f2f88;hpb=e02643f32e4c97ca307f8fc5b69be79c40d70a3b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index 7c99db55f..2676133db 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts @@ -1,10 +1,8 @@ // Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/ -import mkdirp = require('mkdirp') -import path = require('path') -import winston = require('winston') - -// Do not use barrel (dependencies issues) -import { CONFIG } from '../initializers/constants' +import * as mkdirp from 'mkdirp' +import * as path from 'path' +import * as winston from 'winston' +import { CONFIG } from '../initializers' const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT