From 1fbf2be5620c71aa90d618ee685f9d40204ee8b1 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 25 Jul 2022 21:31:52 -0700 Subject: [PATCH] only log the url during debug --- agent/agent_unix.go | 2 +- agent/agent_windows.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/agent_unix.go b/agent/agent_unix.go index 037b112..0650512 100644 --- a/agent/agent_unix.go +++ b/agent/agent_unix.go @@ -225,7 +225,7 @@ func (a *Agent) AgentUpdate(url, inno, version string) { defer os.Remove(f.Name()) a.Logger.Infof("Agent updating from %s to %s", a.Version, version) - a.Logger.Infoln("Downloading agent update from", url) + a.Logger.Debugln("Downloading agent update from", url) rClient := resty.New() rClient.SetCloseConnection(true) diff --git a/agent/agent_windows.go b/agent/agent_windows.go index 70367c7..6637e7b 100644 --- a/agent/agent_windows.go +++ b/agent/agent_windows.go @@ -565,7 +565,7 @@ func (a *Agent) AgentUpdate(url, inno, version string) { a.CleanupAgentUpdates() updater := filepath.Join(a.ProgramDir, inno) a.Logger.Infof("Agent updating from %s to %s", a.Version, version) - a.Logger.Infoln("Downloading agent update from", url) + a.Logger.Debugln("Downloading agent update from", url) rClient := resty.New() rClient.SetCloseConnection(true)