mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 18:06:35 -06:00
Remove environment dict output
This commit is contained in:
7
main.go
7
main.go
@@ -61,16 +61,9 @@ func init() {
|
||||
}
|
||||
var isDevelopment bool = env == "development"
|
||||
|
||||
environmentDict := zerolog.Dict()
|
||||
lo.ForEach(os.Environ(), func(envVar string, _ int) {
|
||||
envVarSplit := strings.Split(envVar, "=")
|
||||
environmentDict.Str(envVarSplit[0], envVarSplit[1])
|
||||
})
|
||||
|
||||
if isDevelopment {
|
||||
log.Logger = zerolog.New(logOut{}).With().Timestamp().Logger()
|
||||
}
|
||||
log.Info().Dict("env", environmentDict).Msg("env")
|
||||
|
||||
discordgo.Logger = func(msgL, caller int, format string, a ...interface{}) {
|
||||
pc, file, line, _ := runtime.Caller(caller)
|
||||
|
||||
Reference in New Issue
Block a user