From 87204ad85e1e42759360758e2fe477e8648036a8 Mon Sep 17 00:00:00 2001 From: Tobiasz Heller Date: Tue, 26 Mar 2024 20:32:57 +0100 Subject: [PATCH] fix logger variable --- internal/api/mobile/app/command/send_2fa_token.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/api/mobile/app/command/send_2fa_token.go b/internal/api/mobile/app/command/send_2fa_token.go index 3438df2..d87346d 100644 --- a/internal/api/mobile/app/command/send_2fa_token.go +++ b/internal/api/mobile/app/command/send_2fa_token.go @@ -46,9 +46,7 @@ type Send2FaTokenHandler struct { func (h *Send2FaTokenHandler) Handle(ctx context.Context, cmd *Send2FaToken) error { extId, _ := uuid.Parse(cmd.ExtensionId) - log := logging.FromContext(ctx) - - log = log.WithFields(logging.Fields{ + log := logging.FromContext(ctx).WithFields(logging.Fields{ "browser_extension_id": cmd.ExtensionId, "device_id": cmd.DeviceId, "token_request_id": cmd.TokenRequestId,