Selaa lähdekoodia

Enable discordgo info logs by default

Tulir Asokan 2 vuotta sitten
vanhempi
sitoutus
7b93d9099d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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