1
0

refactor: logs

This commit is contained in:
dump_stack() 2024-02-21 13:30:49 +00:00
parent 0ba3651c4a
commit bd2f274887
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -553,7 +553,10 @@ func (q *System) scpWithRetry(user, localPath, remotePath string, recursive bool
break
}
q.Log.Warn().Err(err).Msg("scp: failed")
q.Log.Debug().Err(err).Msgf(
"scp[%v] (r: %v) %v -> %v: failed",
user, recursive, localPath, remotePath)
time.Sleep(q.SSH.RetryTimeout)
q.Log.Warn().Msgf("scp: %d retries left", retries)
}