1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-22 12:07:04 +00:00

Refactor configuration parser to use tables

This commit is contained in:
James Hillyerd
2017-01-22 18:57:03 -08:00
parent fa28fa57f8
commit 62b77dfe5e
2 changed files with 161 additions and 320 deletions

View File

@@ -89,8 +89,7 @@ func main() {
signal.Notify(sigChan, syscall.SIGHUP, syscall.SIGTERM, syscall.SIGINT)
// Initialize logging
level, _ := config.Config.String("logging", "level")
log.SetLogLevel(level)
log.SetLogLevel(config.GetLogLevel())
if err := log.Initialize(*logfile); err != nil {
fmt.Fprintf(os.Stderr, "%v", err)
os.Exit(1)