refactor: logs
This commit is contained in:
parent
0ba3651c4a
commit
bd2f274887
@ -553,7 +553,10 @@ func (q *System) scpWithRetry(user, localPath, remotePath string, recursive bool
|
|||||||
break
|
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)
|
time.Sleep(q.SSH.RetryTimeout)
|
||||||
q.Log.Warn().Msgf("scp: %d retries left", retries)
|
q.Log.Warn().Msgf("scp: %d retries left", retries)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user