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:
Andrew Welker
2025-09-26 21:47:06 -05:00
parent bb694b4200
commit 7c90027578
2 changed files with 39 additions and 12 deletions

View File

@@ -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