Merge pull request #20168 from overleaf/jpa-email-fallback-info

[web] log emails on level INFO from fallback transport

GitOrigin-RevId: a1f63e302cf6c5fcfa82b85ff2c79182fdc58945
This commit is contained in:
Jakob Ackermann 2024-08-29 16:39:31 +02:00 committed by Copybot
parent 3c86912f61
commit d655cb129a
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ function getClient() {
) )
client = { client = {
async sendMail(options) { async sendMail(options) {
logger.debug({ options }, 'Would send email if enabled.') logger.info({ options }, 'Would send email if enabled.')
}, },
} }
} }

View file

@ -22,7 +22,7 @@ describe('Add secondary email address confirmation code email', function () {
this.skip() this.skip()
} }
spy = sinon.spy(logger, 'debug') spy = sinon.spy(logger, 'info')
user = new User() user = new User()
await user.register() await user.register()
await user.login() await user.login()