feat: snapshots messages and stop timer

This commit is contained in:
Guillermo Marcel 2025-05-07 12:48:28 -03:00
parent ea4c3bb64c
commit dabab6757b

View File

@ -66,9 +66,10 @@ public class Snapshoter : ISnapshoter
try
{
await process.WaitForExitAsync(timeoutSignal.Token);
} catch (OperationCanceledException)
} catch (OperationCanceledException ex)
{
_logger.LogError("Taking snapshot timed out");
timer.Stop();
_logger.LogError("Taking snapshot timed out after {Elapsed} ms", timer.ElapsedMilliseconds);
process.Kill();
return null;
}