mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 13:14:49 +00:00
Attempts to resolve exception thrown from inside CrestronLogger.Initialize() that occurs when RM is present, but cannot be accessed for some reason.
This commit is contained in:
@@ -71,17 +71,19 @@ namespace PepperDash.Core
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
LoggerModeEnum loggerMode = LoggerModeEnum.DEFAULT;
|
|
||||||
if (InitialParametersClass.NumberOfRemovableDrives > 0)
|
if (InitialParametersClass.NumberOfRemovableDrives > 0)
|
||||||
loggerMode = LoggerModeEnum.RM;
|
{
|
||||||
|
CrestronConsole.PrintLine("{0} RM Drive(s) Present.", InitialParametersClass.NumberOfRemovableDrives);
|
||||||
CrestronLogger.Initialize(2, loggerMode); // Use RM instead of DEFAULT as not to double-up console messages
|
CrestronLogger.Initialize(2, LoggerModeEnum.DEFAULT); // Use RM instead of DEFAULT as not to double-up console messages.
|
||||||
|
}
|
||||||
|
else
|
||||||
|
CrestronConsole.PrintLine("No RM Drive(s) Present.");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CrestronConsole.Print("Error Initilizing Crestron Logger: {0}", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
CrestronConsole.PrintLine("Initializing of CrestronLogger failed: {0}", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user