From 3887d1299d7e98ed64c48f22f826463d1e2bd665 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Wed, 22 Dec 2021 11:08:44 +0400 Subject: [PATCH] adding username translation --- profile.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profile.go b/profile.go index f4ae0dc..56c8240 100644 --- a/profile.go +++ b/profile.go @@ -5,6 +5,7 @@ import ( "encoding/json" "fmt" "github.com/pkg/errors" + "github.com/rs/zerolog/log" "io" "net/http" "sync" @@ -64,5 +65,7 @@ func (s *ProfileService) GetUsername(address string) string { s.cache[address] = name } + log.Debug().Msgf("[PROFILE] %s -> %s", address, s.cache[address]) + return s.cache[address] }