mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
refactor: clean up whitespace and improve debug URL logging format
This commit is contained in:
parent
c52d585a0c
commit
2530003a58
1 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue