~edwargix/tallyard

81a16946f61cfab1d0296d45d9cdad6b05ed3711 — David Florness 4 years ago 09513f0
Use logrus for DebugCB
1 files changed, 1 insertions(+), 2 deletions(-)

M cmd/tallyard/main.go
M cmd/tallyard/main.go => cmd/tallyard/main.go +1 -2
@@ 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 {