From b85c5a8788f2ff69cc2f65bf37e8826d3bb1e27b Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 19 Jun 2025 14:17:43 +0300 Subject: [PATCH] log the metadata from GetSwapToVoucherData --- handlers/application/menuhandler.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index a4b453c..7da076f 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -2265,8 +2265,8 @@ func (h *MenuHandlers) GetDefaultPool(ctx context.Context, sym string, input []b logg.ErrorCtxf(ctx, "failed to read the activePoolSym entry with", "key", storedb.DATA_ACTIVE_POOL_SYM, "error", err) return res, err } - - res.Content = string(activePoolSym) + + res.Content = string(activePoolSym) return res, nil } @@ -2944,6 +2944,8 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt return res, nil } + logg.InfoCtxf(ctx, "Metadata from GetSwapToVoucherData:", "metadata", metadata) + // Store the active swap_to data if err := store.UpdateSwapToVoucherData(ctx, userStore, sessionId, metadata); err != nil { logg.ErrorCtxf(ctx, "failed on UpdateSwapToVoucherData", "error", err)