mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
removed log level flag
This commit is contained in:
parent
e9245a200c
commit
71403194e2
@ -7,7 +7,6 @@ import (
|
|||||||
_ "net/http/pprof"
|
_ "net/http/pprof"
|
||||||
"os"
|
"os"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
@ -43,22 +42,6 @@ var (
|
|||||||
// debugging / profiling
|
// debugging / profiling
|
||||||
flagFreeOSMem = flag.Int("free-os-mem", 0, "free OS mem every X minutes")
|
flagFreeOSMem = flag.Int("free-os-mem", 0, "free OS mem every X minutes")
|
||||||
flagHeapDump = flag.Int("heap-dump", 0, "dump heap 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) {
|
func exitUsage(code int) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user