mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
Log Process Termination
This commit is contained in:
@@ -69,6 +69,28 @@ namespace VRCX
|
||||
public void OnRenderProcessTerminated(IWebBrowser chromiumWebBrowser, IBrowser browser, CefTerminationStatus status,
|
||||
int errorCode, string errorMessage)
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
case CefTerminationStatus.AbnormalTermination:
|
||||
_logger.Error("Browser terminated abnormally.");
|
||||
break;
|
||||
|
||||
case CefTerminationStatus.ProcessWasKilled:
|
||||
_logger.Error("Browser was killed.");
|
||||
break;
|
||||
|
||||
case CefTerminationStatus.ProcessCrashed:
|
||||
_logger.Error("Browser crashed while.");
|
||||
break;
|
||||
|
||||
case CefTerminationStatus.OutOfMemory:
|
||||
_logger.Error("Browser out of memory.");
|
||||
break;
|
||||
|
||||
default:
|
||||
_logger.Error($"Browser terminated with unhandled status '{status}' while at address.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user