updating stuff

This commit is contained in:
Jon Lundy
2019-09-06 15:08:50 -06:00
parent 8ea8968a1f
commit 8bd4b9334f
9 changed files with 17049 additions and 6659 deletions

View File

@@ -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",