From 25bab05530358489fb71bec01c19b23d64e7efd0 Mon Sep 17 00:00:00 2001
From: Gregory Rudolph <rudi@nightmare.haus>
Date: Thu, 29 Oct 2020 13:30:04 -0400
Subject: [PATCH] Debugging

---
 main.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/main.go b/main.go
index 9ab4518..464edcc 100644
--- a/main.go
+++ b/main.go
@@ -165,6 +165,8 @@ func ready(s *discordgo.Session, event *discordgo.Ready) {
 
 func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {
 	defer log.PanicSafe()
+	log.LogInfo("Calling guildMemberUpdate")
+	defer log.LogInfo("returning from guildMemberUpdate")
 	for role := range m.Roles {
 		if fmt.Sprintf("%+v", role) == config.MonitorRole {
 			s.ChannelMessageSend(config.AdminChannel, "New unverified user detected.")
@@ -178,6 +180,8 @@ func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {
 
 func guildMemberAdd(s *discordgo.Session, m *discordgo.GuildMemberAdd) {
 	defer log.PanicSafe()
+	log.LogInfo("calling guildMemberAdd")
+	defer log.LogInfo("Returning from guildMemberAdd")
 	config.Unverified[m.User.ID] = time.Now()
 	config.Probations[m.User.ID] = time.Now()
 	s.GuildMemberRoleAdd(config.GuildID, m.User.ID, config.MonitorRole)
@@ -197,6 +201,8 @@ func guildMemberBanned(s *discordgo.Session, m *discordgo.GuildBanAdd) {
 
 func guildMemberRemove(s *discordgo.Session, m *discordgo.GuildMemberRemove) {
 	defer log.PanicSafe()
+	log.LogInfo("Calling guildMemberRemove")
+	defer log.LogInfo("returning from guildMemberRemove")
 	go runPurge(s)
 	banned := false
 	for uid, join := range config.Probations {