mirror of
https://github.com/Xevion/banner.git
synced 2025-12-07 13:14:29 -06:00
Move debug statement
This commit is contained in:
2
main.go
2
main.go
@@ -36,13 +36,13 @@ func init() {
|
||||
if environment == "" {
|
||||
environment = "development"
|
||||
}
|
||||
log.Debug().Str("environment", environment).Msg("")
|
||||
|
||||
// Use the custom console writer if we're in development
|
||||
isDevelopment = environment == "development"
|
||||
if isDevelopment {
|
||||
log.Logger = zerolog.New(logOut{}).With().Timestamp().Logger()
|
||||
}
|
||||
log.Debug().Str("environment", environment).Msg("Environment Loaded")
|
||||
|
||||
// Set discordgo's logger to use zerolog
|
||||
discordgo.Logger = DiscordGoLogger
|
||||
|
||||
Reference in New Issue
Block a user