Replace log with logrus for level based logging, add debug flag

This commit is contained in:
2023-12-15 06:40:10 -06:00
parent ca136634c9
commit b5ee5bec0c
7 changed files with 49 additions and 27 deletions

View File

@@ -2,11 +2,11 @@ package main
import (
"fmt"
"log"
"strconv"
"time"
"github.com/bwmarrin/discordgo"
log "github.com/sirupsen/logrus"
)
var CodeCommandDefinition = &discordgo.ApplicationCommand{
@@ -87,7 +87,7 @@ func CodeCommandHandler(session *discordgo.Session, interaction *discordgo.Inter
}
}
default:
log.Printf("Warning: Unhandled autocomplete option: %s", data.Options)
log.Printf("Warning: Unhandled autocomplete option: %v", data.Options)
return
}