From 4e7600492d810df7f36e1c36628c73f95f4fba64 Mon Sep 17 00:00:00 2001 From: "hao.dong" Date: Wed, 16 May 2018 15:34:56 +0800 Subject: [PATCH] Delete an unused global variable logOutput logOutput is not used as a global variable, it is re-initialized as short-term variable in func main(). --- main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.go b/main.go index 86565f4e6..264c30978 100644 --- a/main.go +++ b/main.go @@ -47,8 +47,6 @@ var version = "1.5.9" var shuttingDown int32 -var logOutput logger.LevelWriter - func main() { logOutput := logger.NewLevelWriter(os.Stderr, "INFO", "2017/01/01 00:00:00 ") log.SetOutput(logOutput)