mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
GetProcessesSafe: better exception logging
This commit is contained in:
parent
6e95046af2
commit
6e022310a5
@ -85,7 +85,8 @@ namespace Bloxstrap
|
||||
}
|
||||
catch (ArithmeticException ex) // thanks microsoft
|
||||
{
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Arithmetic exception occured with System.Diagnostics.Process.GetProcesses: {ex}");
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Unable to fetch processes!");
|
||||
App.Logger.WriteException(LOG_IDENT, ex);
|
||||
return Array.Empty<Process>(); // can we retry?
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user