logging improvements

This commit is contained in:
Watn3y 2023-03-05 05:45:36 +01:00
parent c63dbc666d
commit 6a31972ad0
8 changed files with 35 additions and 15 deletions

View file

@ -1,7 +1,6 @@
package config
import (
"fmt"
"github.com/BurntSushi/toml"
"log"
"os"
@ -38,10 +37,7 @@ func LoadConfig() {
log.Fatal(err)
}
if BotConfig.DebugMode {
fmt.Print("Loaded config from configfile: ")
fmt.Printf("%+v\n", BotConfig)
}
BotConfig.Shutup = make(map[int64]time.Time)
log.Printf("[config] Config loaded as: %+v\n", BotConfig)
}