]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/logger.ts
Add avatar max size limit
[github/Chocobozzz/PeerTube.git] / server / helpers / logger.ts
index 3c35e41e066952622d820e0f3b66170edd7c29a4..2676133db30df6c258e016990df50205a4cdbce2 100644 (file)
@@ -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
 
@@ -36,13 +34,6 @@ const logger = new winston.Logger({
   exitOnError: true
 })
 
-// TODO: useful?
-// logger.stream = {
-//   write: function (message) {
-//     logger.info(message)
-//   }
-// }
-
 // ---------------------------------------------------------------------------
 
 export { logger }