From 286e1749439ca5695e1dd47fcf399c72bf6ff6d5 Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 30 Nov 2020 14:44:01 +0800 Subject: [PATCH] improve --- cmd/agent/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 1c17959..78bdc11 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -64,9 +64,10 @@ func doSelfUpdate() { // latest version is the same as current version. It means current binary is up to date. log.Println("Current binary is the latest version", version) } else { + log.Println("Prev version", dao.Version) + dao.Version = latest.Version.String() client.Register(ctx, monitor.GetHost().PB()) log.Println("Successfully updated to version", latest.Version) - log.Println("Release note:\n", latest.ReleaseNotes) } }