From 09f8d19277d38773fdd153958444095c9bd7ae67 Mon Sep 17 00:00:00 2001 From: joan vicens Date: Tue, 29 Nov 2022 12:47:08 +0100 Subject: [PATCH] fix: logger does not support string building --- src/app/routes/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/routes/auth.ts b/src/app/routes/auth.ts index b94e4215..2c6b87e7 100644 --- a/src/app/routes/auth.ts +++ b/src/app/routes/auth.ts @@ -105,14 +105,14 @@ export class AuthController { private logReferralError(userId: unknown, err: Error) { if (!err.message) { - return this.logger.error('[STORAGE]: ERROR message undefined applying referral for user %s', userId); + return this.logger.error(`[STORAGE]: ERROR message undefined applying referral for user ${userId}`); } if (err instanceof ReferralsNotAvailableError) { return; } - return this.logger.error('[STORAGE]: ERROR applying referral for user %s: %s', userId, err.message); + return this.logger.error(`[STORAGE]: ERROR applying referral for user ${userId}: ${err.message}`); } async access(req: Request, res: Response) {