aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-22 11:32:43 +0100
committerChocobozzz <me@florianbigard.com>2018-03-22 11:47:26 +0100
commit05e67d6206669b4a17e786038b1923e79bacb196 (patch)
treeea0eb0ed4ea6944f7bf847e1d4497893019d83ed /server/lib
parent5a649344ffd0e8ac87ca1b573e57156d659f8b9d (diff)
downloadPeerTube-05e67d6206669b4a17e786038b1923e79bacb196.tar.gz
PeerTube-05e67d6206669b4a17e786038b1923e79bacb196.tar.zst
PeerTube-05e67d6206669b4a17e786038b1923e79bacb196.zip
Add logging for emails
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/emailer.ts4
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 @@
1import { createTransport, Transporter } from 'nodemailer' 1import { createTransport, Transporter } from 'nodemailer'
2import { UserRight } from '../../shared/models/users' 2import { UserRight } from '../../shared/models/users'
3import { isTestInstance } from '../helpers/core-utils' 3import { isTestInstance } from '../helpers/core-utils'
4import { logger } from '../helpers/logger' 4import { bunyanLogger, logger } from '../helpers/logger'
5import { CONFIG } from '../initializers' 5import { CONFIG } from '../initializers'
6import { UserModel } from '../models/account/user' 6import { UserModel } from '../models/account/user'
7import { VideoModel } from '../models/video/video' 7import { 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