refactor(logging): replace console usage with logger
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user