mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Fix logging for background thread
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user