diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/emailer.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index bc0061c99..9c105a575 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { createTransport, Transporter } from 'nodemailer' | 1 | import { createTransport, Transporter } from 'nodemailer' |
2 | import { UserRight } from '../../shared/models/users' | 2 | import { UserRight } from '../../shared/models/users' |
3 | import { isTestInstance } from '../helpers/core-utils' | 3 | import { isTestInstance } from '../helpers/core-utils' |
4 | import { logger } from '../helpers/logger' | 4 | import { bunyanLogger, logger } from '../helpers/logger' |
5 | import { CONFIG } from '../initializers' | 5 | import { CONFIG } from '../initializers' |
6 | import { UserModel } from '../models/account/user' | 6 | import { UserModel } from '../models/account/user' |
7 | import { VideoModel } from '../models/video/video' | 7 | import { VideoModel } from '../models/video/video' |
@@ -44,6 +44,8 @@ class Emailer { | |||
44 | host: CONFIG.SMTP.HOSTNAME, | 44 | host: CONFIG.SMTP.HOSTNAME, |
45 | port: CONFIG.SMTP.PORT, | 45 | port: CONFIG.SMTP.PORT, |
46 | secure: CONFIG.SMTP.TLS, | 46 | secure: CONFIG.SMTP.TLS, |
47 | debug: CONFIG.LOG.LEVEL === 'debug', | ||
48 | logger: bunyanLogger as any, | ||
47 | ignoreTLS: isTestInstance(), | 49 | ignoreTLS: isTestInstance(), |
48 | tls, | 50 | tls, |
49 | auth | 51 | auth |