From 81a16946f61cfab1d0296d45d9cdad6b05ed3711 Mon Sep 17 00:00:00 2001 From: David Florness Date: Mon, 18 Jan 2021 22:18:02 -0500 Subject: [PATCH] Use logrus for DebugCB --- cmd/tallyard/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tallyard/main.go b/cmd/tallyard/main.go index 87e5e83..3523ad3 100644 --- a/cmd/tallyard/main.go +++ b/cmd/tallyard/main.go @@ -16,8 +16,7 @@ import ( ) func DebugCB(source mautrix.EventSource, evt *event.Event) { - return - fmt.Printf("%[5]d: <%[1]s> %[4]s (%[2]s/%[3]s)\n", evt.Sender, evt.Type.String(), evt.ID, evt.Content.AsMessage().Body, source) + log.Debugf("%[5]d: <%[1]s> %[4]s (%[2]s/%[3]s)\n", evt.Sender, evt.Type.String(), evt.ID, evt.Content.AsMessage().Body, source) } func electionFilter(localUserID id.UserID) *mautrix.Filter { -- 2.38.4