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