Răsfoiți Sursa

Enable discordgo info logs by default

Tulir Asokan 2 ani în urmă
părinte
comite
7b93d9099d
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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