cmd/revid-cli: separate out loggin consts

This commit is contained in:
Dan Kortschak 2018-06-08 22:14:23 +09:30
parent 41eb46c702
commit 043ff35dfe
1 changed files with 8 additions and 2 deletions

View File

@ -42,6 +42,14 @@ import (
linuxproc "github.com/c9s/goprocinfo/linux" linuxproc "github.com/c9s/goprocinfo/linux"
) )
const (
// progName is the program name for logging purposes.
progName = "revid-cli"
// Logging is set to INFO level.
loggerVerbosity = 3
)
// Indexes for configFlags // Indexes for configFlags
const ( const (
inputPtr = iota inputPtr = iota
@ -71,12 +79,10 @@ const (
// Other misc consts // Other misc consts
const ( const (
progName = "revid-cli"
netSendRetryTime = 5 * time.Second netSendRetryTime = 5 * time.Second
defaultRunDuration = 24 * time.Hour defaultRunDuration = 24 * time.Hour
revidStopTime = 5 * time.Second revidStopTime = 5 * time.Second
prepTime = 20 * time.Second prepTime = 20 * time.Second
loggerVerbosity = 3
) )
const ( const (