removed log level flag

This commit is contained in:
Philipp Mieden 2019-05-23 14:23:26 +02:00
parent e9245a200c
commit 71403194e2

View File

@ -7,7 +7,6 @@ import (
_ "net/http/pprof"
"os"
"runtime/debug"
"strings"
"time"
"github.com/apex/log"
@ -43,22 +42,6 @@ var (
// debugging / profiling
flagFreeOSMem = flag.Int("free-os-mem", 0, "free OS mem every X minutes")
flagHeapDump = flag.Int("heap-dump", 0, "dump heap every X minutes")
logLevelOptions = []string{
logLevelError,
logLevelRecord,
logLevelWarning,
logLevelNotice,
logLevelDebug,
}
logLevel = flag.String(
"log-level",
logLevelRecord,
fmt.Sprintf(
"one of %s",
strings.Join(logLevelOptions, ", "),
),
)
)
func exitUsage(code int) {