Skip to content

Commit b872340

Browse files
committed
Add more debug logging
1 parent 1c4fba6 commit b872340

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ArchiSteamFarm/Helpers/CrossProcessFileBasedSemaphore.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ async Task ICrossProcessSemaphore.WaitAsync(CancellationToken cancellationToken)
107107
}
108108
} catch (FileNotFoundException) {
109109
throw;
110-
} catch (IOException) {
110+
} catch (IOException e) {
111+
ASF.ArchiLogger.LogGenericDebuggingException(e);
112+
111113
await Task.Delay(SpinLockDelay, cancellationToken).ConfigureAwait(false);
112114
}
113115
}
@@ -168,7 +170,9 @@ async Task<bool> ICrossProcessSemaphore.WaitAsync(int millisecondsTimeout, Cance
168170
}
169171
} catch (FileNotFoundException) {
170172
throw;
171-
} catch (IOException) {
173+
} catch (IOException e) {
174+
ASF.ArchiLogger.LogGenericDebuggingException(e);
175+
172176
if (millisecondsTimeout <= 0) {
173177
return false;
174178
}

0 commit comments

Comments
 (0)