]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.ts
Remove unused tracker param
[github/Chocobozzz/PeerTube.git] / server.ts
index 8a762a9054ccb7628b8503dfc45b2b9462f3c8f6..e3cddfd33a643a623cfa53932fc34adca138c673 100644 (file)
--- a/server.ts
+++ b/server.ts
@@ -158,7 +158,8 @@ morgan.token('user-agent', (req: express.Request) => {
   return req.get('user-agent')
 })
 app.use(morgan('combined', {
-  stream: { write: logger.info.bind(logger) }
+  stream: { write: logger.info.bind(logger) },
+  skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping'
 }))
 
 // For body requests
@@ -249,7 +250,7 @@ async function startApplication () {
   Emailer.Instance.init()
 
   await Promise.all([
-    Emailer.Instance.checkConnectionOrDie(),
+    Emailer.Instance.checkConnection(),
     JobQueue.Instance.init()
   ])
 
@@ -283,7 +284,7 @@ async function startApplication () {
 
   // Make server listening
   server.listen(port, hostname, () => {
-    logger.info('Server listening on %s:%d', hostname, port)
+    logger.info('HTTP server listening on %s:%d', hostname, port)
     logger.info('Web server: %s', WEBSERVER.URL)
 
     Hooks.runAction('action:application.listening')