refactor: clean up whitespace and improve debug URL logging format

This commit is contained in:
Neil Dorin 2026-05-07 10:56:56 -06:00
parent c52d585a0c
commit 2530003a58

View file

@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Core.Web
private readonly WebApiServer _debugServer; private readonly WebApiServer _debugServer;
///<example> ///<example>
/// http(s)://{ipaddress}/cws/{basePath} /// http(s)://{ipaddress}/cws/{basePath}
@ -262,7 +262,7 @@ namespace PepperDash.Essentials.Core.Web
_server.Start(); _server.Start();
_debugServer.Start(); _debugServer.Start();
GetPaths(); GetPaths();
} }
@ -307,7 +307,11 @@ namespace PepperDash.Essentials.Core.Web
Debug.LogMessage(LogEventLevel.Information, this, new string('-', 50)); Debug.LogMessage(LogEventLevel.Information, this, new string('-', 50));
Debug.LogMessage(LogEventLevel.Information, this, "Developer Tools Web App available at: https://{currentIp}/cws/debug", currentIp); 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);
} }
} }
} }