From 51d161ee103f5066cf3dbfc9fd2ad1343fca308f Mon Sep 17 00:00:00 2001 From: saxon Date: Mon, 10 Sep 2018 18:49:09 +0930 Subject: [PATCH] main: created global smartlogger.Logger ptr and create default log pathpath --- cmd/revid-cli/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index fd9aa8ee..16535298 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -83,11 +83,15 @@ const ( netSendRetryTime = 5 * time.Second defaultRunDuration = 24 * time.Hour revidStopTime = 5 * time.Second + defaultLogPath = "../" ) // canProfile is set to false with revid-cli is built with "-tags profile". var canProfile = true +// The logger that will be used throughout +var logger *smartlogger.Logger + // Globals var ( rv *revid.Revid