only log the url during debug

This commit is contained in:
wh1te909 2022-07-25 21:31:52 -07:00
parent f60be3deed
commit 1fbf2be562
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)