Fix logging for background thread

This commit is contained in:
Den Delimarsky
2021-05-01 09:41:22 -07:00
parent 45e24a2605
commit a13a5fde84

View File

@@ -105,7 +105,6 @@ namespace Espresso.Shell.Core
// In case cancellation was already requested. // In case cancellation was already requested.
//ThreadToken.ThrowIfCancellationRequested(); //ThreadToken.ThrowIfCancellationRequested();
try try
{ {
if (keepDisplayOn) if (keepDisplayOn)
@@ -153,6 +152,7 @@ namespace Espresso.Shell.Core
} }
catch (OperationCanceledException ex) catch (OperationCanceledException ex)
{ {
log.Debug($"Background thread termination. Message: {ex.Message}");
// Task was clearly cancelled. // Task was clearly cancelled.
return success; return success;
} }