feat: snapshots messages and stop timer
This commit is contained in:
parent
ea4c3bb64c
commit
dabab6757b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user