mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-20 16:06:50 +00:00
feat: set direct server debug level via console command
The `mobilewsdebug` console command can now be used to set the internal websocket logging level for both the API client and the direct server at the same time.
This commit is contained in:
parent
bb694b4200
commit
7c90027578
2 changed files with 39 additions and 12 deletions
|
|
@ -326,6 +326,12 @@ namespace PepperDash.Essentials.WebSocketServer
|
|||
}
|
||||
}
|
||||
|
||||
public void SetWebsocketLogLevel(LogLevel level)
|
||||
{
|
||||
CrestronConsole.ConsoleCommandResponse($"Setting direct server debug level to {level}", level.ToString());
|
||||
_server.Log.Level = level;
|
||||
}
|
||||
|
||||
private void AddClientsForTouchpanels()
|
||||
{
|
||||
var touchpanels = DeviceManager.AllDevices
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue