Add more debug logging

This commit is contained in:
Łukasz Domeradzki
2025-11-06 21:02:11 +01:00
parent 1c4fba6b2e
commit b872340c5d

View File

@@ -107,7 +107,9 @@ internal sealed class CrossProcessFileBasedSemaphore : IAsyncDisposable, ICrossP
} }
} catch (FileNotFoundException) { } catch (FileNotFoundException) {
throw; throw;
} catch (IOException) { } catch (IOException e) {
ASF.ArchiLogger.LogGenericDebuggingException(e);
await Task.Delay(SpinLockDelay, cancellationToken).ConfigureAwait(false); await Task.Delay(SpinLockDelay, cancellationToken).ConfigureAwait(false);
} }
} }
@@ -168,7 +170,9 @@ internal sealed class CrossProcessFileBasedSemaphore : IAsyncDisposable, ICrossP
} }
} catch (FileNotFoundException) { } catch (FileNotFoundException) {
throw; throw;
} catch (IOException) { } catch (IOException e) {
ASF.ArchiLogger.LogGenericDebuggingException(e);
if (millisecondsTimeout <= 0) { if (millisecondsTimeout <= 0) {
return false; return false;
} }