Browse Source

Enable discordgo info logs by default

Tulir Asokan 2 năm trước cách đây
mục cha
commit
7b93d9099d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      user.go

+ 2 - 0
user.go

@@ -560,6 +560,8 @@ func (user *User) Connect() error {
 	// TODO move to config
 	if os.Getenv("DISCORD_DEBUG") == "1" {
 		session.LogLevel = discordgo.LogDebug
+	} else {
+		session.LogLevel = discordgo.LogInformational
 	}
 	if !session.IsUser {
 		session.Identify.Intents = BotIntents