refactor(logging): replace console usage with logger

This commit is contained in:
William Valentin
2025-09-23 12:19:15 -07:00
parent 16bd4a8b20
commit 10d1de91fe
11 changed files with 76 additions and 44 deletions

View File

@@ -4,6 +4,7 @@ import { mailgunService } from '../mailgun.service';
import { AccountStatus } from './auth.constants';
import { databaseService } from '../database';
import { tokenService } from './token.service';
import { logger } from '../logging';
const TOKEN_EXPIRY_HOURS = 24;
@@ -32,7 +33,7 @@ export class EmailVerificationService {
token
);
if (!emailSent) {
console.warn('Failed to send verification email');
logger.auth.warn('Failed to send verification email');
}
}