From 91ad00a294734888a45a45733a152d16ac7843b7 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Tue, 22 Nov 2016 21:01:29 +0300 Subject: [PATCH] remove client log file on successful quit --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 625400a..62a297b 100644 --- a/client.go +++ b/client.go @@ -16,6 +16,7 @@ func client() { if err != nil { panic(err) } + defer os.Remove(gLogPath) defer logFile.Close() log.SetOutput(logFile)