Reenable console EventLoop try-catch
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using System.Diagnostics;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace TerminalUI;
|
namespace TerminalUI;
|
||||||
|
|
||||||
@@ -41,15 +42,15 @@ public class EventLoop(IApplicationContext applicationContext,
|
|||||||
{
|
{
|
||||||
foreach (var action in _permanentQueue)
|
foreach (var action in _permanentQueue)
|
||||||
{
|
{
|
||||||
/*try
|
try
|
||||||
{*/
|
{
|
||||||
action();
|
action();
|
||||||
/*}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Debug.Fail(e.Message);
|
Debug.Fail(e.Message);
|
||||||
_logger.LogError(e, "Error while processing action in permanent queue");
|
_logger.LogError(e, "Error while processing action in permanent queue");
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user