mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
refactor: Rename LocalConfigPresent to LocalConfigPresentBanner and enhance debug logging in ControlSystem
This commit is contained in:
parent
ff1393b768
commit
9a385eef96
3 changed files with 10 additions and 9 deletions
|
|
@ -21,7 +21,7 @@ namespace PepperDash.Essentials.Core.Config;
|
|||
/// <summary>
|
||||
/// Local Config Present Message
|
||||
/// </summary>
|
||||
public const string LocalConfigPresent =
|
||||
public const string LocalConfigPresentBanner =
|
||||
@"
|
||||
***************************************************
|
||||
************* Using Local config file *************
|
||||
|
|
|
|||
|
|
@ -305,7 +305,15 @@ public class EssentialsWebApi : EssentialsDevice
|
|||
: $"https://{currentIp}/cws/debug";
|
||||
Debug.LogMessage(LogEventLevel.Information, this, "Debug App: {debugPath:l}", debugPath);
|
||||
|
||||
Debug.LogInformation(this, "Web API initialized and ready to accept requests");
|
||||
|
||||
Debug.LogMessage(LogEventLevel.Information, this, new string('-', 50));
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -316,8 +316,7 @@ public class ControlSystem : CrestronControlSystem, ILoadConfig, IInitialization
|
|||
Debug.LogMessage(LogEventLevel.Information, "Folder structure verified. Loading config...");
|
||||
if (!ConfigReader.LoadConfig() || ConfigReader.ConfigObject == null)
|
||||
{
|
||||
Debug.LogMessage(LogEventLevel.Warning, "Unable to load config file. Please ensure a valid config file is present and restart the program.");
|
||||
// return;
|
||||
Debug.LogMessage(LogEventLevel.Warning, "Unable to load config file.");
|
||||
}
|
||||
|
||||
CheckPluginVersionsAgainstConfig();
|
||||
|
|
@ -480,12 +479,6 @@ public class ControlSystem : CrestronControlSystem, ILoadConfig, IInitialization
|
|||
|
||||
LoadTieLines();
|
||||
|
||||
/*var mobileControl = GetMobileControlDevice();
|
||||
|
||||
if (mobileControl == null) return;
|
||||
|
||||
mobileControl.LinkSystemMonitorToAppServer();*/
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue