From 3d3441d6c7a5646388ab0a77acad57fdb63b9d32 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 4 Apr 2018 11:04:14 +0200 Subject: Don't start application until all components were initialized --- server/lib/emailer.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server') diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index 85cc725fa..d17749b9a 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts @@ -60,6 +60,8 @@ class Emailer { async checkConnectionOrDie () { if (!this.transporter) return + logger.info('Testing SMTP server...') + try { const success = await this.transporter.verify() if (success !== true) this.dieOnConnectionFailure() -- cgit v1.2.3