From ef0c6819fd118a11e3903905c14fb8619e596856 Mon Sep 17 00:00:00 2001
From: Andrey Kuzmin
Date: Tue, 29 Aug 2023 00:27:49 +0300
Subject: [PATCH] More logs.
---
telegram/process.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/telegram/process.go b/telegram/process.go
index ab8aecc..eac672f 100644
--- a/telegram/process.go
+++ b/telegram/process.go
@@ -112,7 +112,7 @@ func (hdl *InstanceObj) processMsg(ctx context.Context, msg *tgbotapi.Message) e
}
log := hdl.log.With().Int64("chat_id", msg.Chat.ID).
- Str("chat", msg.Chat.UserName).Logger()
+ Str("chat_name", msg.Chat.UserName).Str("chat_title", msg.Chat.Title).Logger()
// In case of newbie we got count >0, for ordinary user count=0
if cnt > 0 && cnt <= 4 {