From 043ff35dfe26b867fdc056b797a194e725e46015 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Fri, 8 Jun 2018 22:14:23 +0930 Subject: [PATCH] cmd/revid-cli: separate out loggin consts --- cmd/revid-cli/main.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 5a709193..bb93cbdb 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -42,6 +42,14 @@ import ( 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 const ( inputPtr = iota @@ -71,12 +79,10 @@ const ( // Other misc consts const ( - progName = "revid-cli" netSendRetryTime = 5 * time.Second defaultRunDuration = 24 * time.Hour revidStopTime = 5 * time.Second prepTime = 20 * time.Second - loggerVerbosity = 3 ) const (