mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-21 15:53:19 +00:00
[Awake]Log error with Logger instead of console (#35100)
This commit is contained in:
parent
474c6f7322
commit
ff17e3dec9
@ -32,7 +32,7 @@ parameters:
|
||||
- name: enableMsBuildCaching
|
||||
type: boolean
|
||||
displayName: "Enable MSBuild Caching"
|
||||
default: true
|
||||
default: false
|
||||
- name: runTests
|
||||
type: boolean
|
||||
displayName: "Run Tests"
|
||||
|
@ -14,7 +14,6 @@ using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
|
||||
using Awake.Core.Models;
|
||||
using Awake.Core.Native;
|
||||
using Awake.Properties;
|
||||
|
@ -5,6 +5,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using ManagedCommon;
|
||||
|
||||
namespace Awake.Core.Threading
|
||||
{
|
||||
@ -49,7 +50,7 @@ namespace Awake.Core.Threading
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine("Error during execution: " + e.Message);
|
||||
Logger.LogError("Error during execution of the STS context message loop: " + e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -58,7 +59,8 @@ namespace Awake.Core.Threading
|
||||
{
|
||||
lock (queue)
|
||||
{
|
||||
queue.Enqueue(null); // Signal the end of the message loop
|
||||
// Signal the end of the message loop
|
||||
queue.Enqueue(null);
|
||||
Monitor.Pulse(queue);
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Awake.Core;
|
||||
using Awake.Core.Models;
|
||||
using Awake.Core.Native;
|
||||
|
Loading…
Reference in New Issue
Block a user