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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user