updating stuff
This commit is contained in:
@@ -2,10 +2,12 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/docopt/docopt.go"
|
||||
"github.com/spf13/viper"
|
||||
"sour.is/x/toolbox/httpsrv"
|
||||
"sour.is/x/toolbox/log"
|
||||
"sour.is/x/toolbox/log/event"
|
||||
_ "sour.is/x/toolbox/stats"
|
||||
)
|
||||
|
||||
@@ -68,12 +70,12 @@ func init() {
|
||||
}
|
||||
|
||||
if args["-v"].(int) == 1 {
|
||||
log.SetVerbose(log.Vinfo)
|
||||
log.SetVerbose(event.VerbInfo)
|
||||
log.Info("Verbose Logging.")
|
||||
}
|
||||
if args["-v"].(int) == 2 {
|
||||
log.SetVerbose(log.Vdebug)
|
||||
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
||||
log.Debug("Debug Logging.")
|
||||
log.SetVerbose(event.VerbDebug)
|
||||
log.Debug("Very Verbose Logging.")
|
||||
}
|
||||
|
||||
log.Printf("%s (%s %s)\n",
|
||||
|
||||
Reference in New Issue
Block a user