diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-22 11:32:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-22 11:47:26 +0100 |
commit | 05e67d6206669b4a17e786038b1923e79bacb196 (patch) | |
tree | ea0eb0ed4ea6944f7bf847e1d4497893019d83ed /server/lib/emailer.ts | |
parent | 5a649344ffd0e8ac87ca1b573e57156d659f8b9d (diff) | |
download | PeerTube-05e67d6206669b4a17e786038b1923e79bacb196.tar.gz PeerTube-05e67d6206669b4a17e786038b1923e79bacb196.tar.zst PeerTube-05e67d6206669b4a17e786038b1923e79bacb196.zip |
Add logging for emails
Diffstat (limited to 'server/lib/emailer.ts')
-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 |