From d9d7f5ace7b33127420c8a6c55ef0783c700bbb1 Mon Sep 17 00:00:00 2001 From: Charles Eckman <861696+cceckman@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:13:44 -0400 Subject: [PATCH] Log the Zulip name of the odd-one-out (#73) --- pairing_bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pairing_bot.go b/pairing_bot.go index bb99285..3d588cb 100644 --- a/pairing_bot.go +++ b/pairing_bot.go @@ -165,11 +165,11 @@ func (pl *PairingLogic) match(w http.ResponseWriter, r *http.Request) { if len(recursersList)%2 != 0 { recurser := recursersList[len(recursersList)-1] recursersList = recursersList[:len(recursersList)-1] - log.Println("Someone was the odd-one-out today") + log.Printf("%s was the odd-one-out today", recurser.name) err := pl.un.sendUserMessage(ctx, botPassword, []int64{recurser.id}, oddOneOutMessage) if err != nil { - log.Printf("Error when trying to send oddOneOut message to %s: %s\n", recurser.email, err) + log.Printf("Error when trying to send oddOneOut message to %s: %s\n", recurser.name, err) } }