logging improvements
This commit is contained in:
parent
c63dbc666d
commit
6a31972ad0
8 changed files with 35 additions and 15 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue