From b31a68ad8ebea68556a3cd195db7536598cd3881 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 1 Jul 2025 00:27:45 +0300 Subject: [PATCH] added logging --- handlers/application/menuhandler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index 55e9f19..1eefabd 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -2605,6 +2605,7 @@ func (h *MenuHandlers) RequestCustomAlias(ctx context.Context, sym string, input // Check if an alias already exists existingAlias, err := store.ReadEntry(ctx, sessionId, storedb.DATA_ACCOUNT_ALIAS) if err == nil && len(existingAlias) > 0 { + logg.InfoCtxf(ctx, "Current alias", "alias", string(existingAlias)) // Update existing alias aliasResult, err := h.accountService.UpdateAlias(ctx, sanitizedInput, string(pubKey)) if err != nil { @@ -2615,6 +2616,7 @@ func (h *MenuHandlers) RequestCustomAlias(ctx context.Context, sym string, input alias := aliasResult.Alias logg.InfoCtxf(ctx, "Updated alias", "alias", alias) } else { + logg.InfoCtxf(ctx, "Registering a new alias", "err", err) // Register a new alias aliasResult, err := h.accountService.RequestAlias(ctx, string(pubKey), sanitizedInput) if err != nil {