refactor: Rename LocalConfigPresent to LocalConfigPresentBanner and enhance debug logging in ControlSystem

This commit is contained in:
Neil Dorin 2026-05-07 11:00:49 -06:00
parent ff1393b768
commit 9a385eef96
3 changed files with 10 additions and 9 deletions

View file

@ -21,7 +21,7 @@ namespace PepperDash.Essentials.Core.Config;
/// <summary>
/// Local Config Present Message
/// </summary>
public const string LocalConfigPresent =
public const string LocalConfigPresentBanner =
@"
***************************************************
************* Using Local config file *************

View file

@ -305,7 +305,15 @@ public class EssentialsWebApi : EssentialsDevice
: $"https://{currentIp}/cws/debug";
Debug.LogMessage(LogEventLevel.Information, this, "Debug App: {debugPath:l}", debugPath);
Debug.LogInformation(this, "Web API initialized and ready to accept requests");
Debug.LogMessage(LogEventLevel.Information, this, new string('-', 50));
var debugAppUrl = CrestronEnvironment.DevicePlatform == eDevicePlatform.Server
? $"https://{hostname}/VirtualControl/Rooms/{InitialParametersClass.RoomId}/cws/debug"
: $"https://{currentIp}/cws/debug";
Debug.LogMessage(LogEventLevel.Information, this, "Developer Tools Web App available at: {debugAppUrl:l}", debugAppUrl);
}
}