Skip to content

Commit b106f94

Browse files
committed
Improve debugging
1 parent b151129 commit b106f94

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

lib/debug.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ exports.server = debug('solid:server')
1111
exports.subscription = debug('solid:subscription')
1212
exports.container = debug('solid:container')
1313
exports.accounts = debug('solid:accounts')
14+
exports.email = debug('solid:email')
1415
exports.ldp = debug('solid:ldp')

lib/models/email-service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const nodemailer = require('nodemailer')
44
const path = require('path')
5+
const debug = require('./../debug').email
56

67
/**
78
* Models a Nodemailer-based email sending service.
@@ -76,6 +77,7 @@ class EmailService {
7677
sendMail (email) {
7778
email.from = email.from || this.sender
7879

80+
debug('Sending email to ' + email.to)
7981
return this.mailer.sendMail(email)
8082
}
8183

lib/requests/delete-account-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class DeleteAccountRequest extends AuthRequest {
7777
.then(recoveryEmail => {
7878
userAccount.email = recoveryEmail
7979

80-
debug('Sending delete account email to:', recoveryEmail)
80+
debug('Preparing delete account email to:', recoveryEmail)
8181

8282
return accountManager.sendDeleteAccountEmail(userAccount)
8383
})

0 commit comments

Comments
 (0)