[Awake]Log error with Logger instead of console (#35100)

This commit is contained in:
Den Delimarsky 2024-09-27 12:38:42 -07:00 committed by GitHub
parent 474c6f7322
commit ff17e3dec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ parameters:
- name: enableMsBuildCaching
type: boolean
displayName: "Enable MSBuild Caching"
default: true
default: false
- name: runTests
type: boolean
displayName: "Run Tests"

View File

@ -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;

View File

@ -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);
}
}

View File

@ -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;