From f4b8a5f30875da08fdfc7979f38e2ebd38810969 Mon Sep 17 00:00:00 2001 From: Daniel Aberger Date: Tue, 24 Jan 2017 23:06:06 +0100 Subject: [PATCH] More debug stuff --- main.go | 2 -- webserver.go | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 44898a7..dfeab87 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,6 @@ import ( "os" "os/signal" "runtime" - "runtime/debug" "strconv" "strings" "sync" @@ -408,7 +407,6 @@ func handleBotControlMessages(s *discordgo.Session, m *discordgo.MessageCreate, if len(parts) > 1 { if scontains(parts[1], "status") { displayBotStats(m.ChannelID) - debug.PrintStack() } } } diff --git a/webserver.go b/webserver.go index fe44bee..8b501df 100644 --- a/webserver.go +++ b/webserver.go @@ -7,6 +7,7 @@ import ( "fmt" "html/template" "net/http" + _ "net/http/pprof" "os" "github.com/bwmarrin/discordgo"