From 2530003a58315fa325a83f1ced7eaf0522dcfa28 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 7 May 2026 10:56:56 -0600 Subject: [PATCH] refactor: clean up whitespace and improve debug URL logging format --- src/PepperDash.Essentials.Core/Web/EssentialsWebApi.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/PepperDash.Essentials.Core/Web/EssentialsWebApi.cs b/src/PepperDash.Essentials.Core/Web/EssentialsWebApi.cs index 375efdeb..3cdb8433 100644 --- a/src/PepperDash.Essentials.Core/Web/EssentialsWebApi.cs +++ b/src/PepperDash.Essentials.Core/Web/EssentialsWebApi.cs @@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Core.Web private readonly WebApiServer _debugServer; - + /// /// http(s)://{ipaddress}/cws/{basePath} @@ -262,7 +262,7 @@ namespace PepperDash.Essentials.Core.Web _server.Start(); _debugServer.Start(); - + GetPaths(); } @@ -307,7 +307,11 @@ namespace PepperDash.Essentials.Core.Web 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); } } } \ No newline at end of file