feat: snapshots messages and stop timer
This commit is contained in:
parent
ea4c3bb64c
commit
dabab6757b
@ -66,9 +66,10 @@ public class Snapshoter : ISnapshoter
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await process.WaitForExitAsync(timeoutSignal.Token);
|
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();
|
process.Kill();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user