mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Update util.d
* Transient logging should be debug only
This commit is contained in:
parent
55a1f63082
commit
8df7597287
1 changed files with 4 additions and 2 deletions
|
|
@ -2166,8 +2166,10 @@ private bool safeSetTimes(string path, SysTime accessTime, SysTime modTime, stri
|
|||
|
||||
// Transient filesystem error: retry with backoff
|
||||
if (isTransientErrno(e.errno)) {
|
||||
// Log that we hit a transient error
|
||||
addLogEntry("safeSetTimes() transient filesystem error response: " ~ e.msg ~ "\n - Attempting retry for setTimes()");
|
||||
if (debugLogging) {
|
||||
// Log that we hit a transient error when doing debugging, otherwise nothing
|
||||
addLogEntry("safeSetTimes() transient filesystem error response: " ~ e.msg ~ "\n - Attempting retry for setTimes()", ["debug"]);
|
||||
}
|
||||
// Backoff and retry
|
||||
Thread.sleep(dur!"msecs"(15 * (attempt + 1)));
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue