From 7c89c0a1444ac25dfb47aa20a0b5a9e4e6871301 Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sat, 13 Dec 2025 06:35:29 +0800 Subject: [PATCH] Chore: trim debug message --- bot/onMessageCreate.go | 10 ---------- docker-compose.yml | 1 - 2 files changed, 11 deletions(-) diff --git a/bot/onMessageCreate.go b/bot/onMessageCreate.go index ad78233..439ae7c 100644 --- a/bot/onMessageCreate.go +++ b/bot/onMessageCreate.go @@ -1,7 +1,6 @@ package bot import ( - "context" "fmt" "net/http" "strconv" @@ -9,10 +8,8 @@ import ( "time" "gitea.konchin.com/go2025/backend/handlers/api" - "gitea.konchin.com/go2025/backend/tracing" "github.com/bwmarrin/discordgo" "github.com/spf13/viper" - "go.uber.org/zap" "golang.org/x/exp/rand" ) @@ -28,10 +25,6 @@ func (b *Bot) fetchAliases() { aliases[alias.Name] = alias.Id } b.aliases = aliases - - tracing.Logger.Ctx(context.Background()). - Info("nmsl", - zap.String("aliases", fmt.Sprintf("%+v", aliases))) } time.Sleep(10 * time.Second) @@ -48,9 +41,6 @@ func (b *Bot) onMessageCreate( } key := strings.ToLower(strings.TrimSpace(m.Content)) - tracing.Logger.Ctx(context.Background()). - Info("wtf", - zap.String("key", key)) if id, ok := b.aliases[key]; ok { var res []api.GetImagesOutputImage diff --git a/docker-compose.yml b/docker-compose.yml index 7cdf096..7220956 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,7 +84,6 @@ services: - backend restart: unless-stopped - volumes: redis: {} postgres: {}