mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +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:
parent
d075f56b2a
commit
1bd0d2df9c
1 changed files with 8 additions and 6 deletions
|
|
@ -71,17 +71,19 @@ namespace PepperDash.Core
|
|||
|
||||
try
|
||||
{
|
||||
LoggerModeEnum loggerMode = LoggerModeEnum.DEFAULT;
|
||||
if (InitialParametersClass.NumberOfRemovableDrives > 0)
|
||||
loggerMode = LoggerModeEnum.RM;
|
||||
|
||||
CrestronLogger.Initialize(2, loggerMode); // Use RM instead of DEFAULT as not to double-up console messages
|
||||
{
|
||||
CrestronConsole.PrintLine("{0} RM Drive(s) Present.", InitialParametersClass.NumberOfRemovableDrives);
|
||||
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)
|
||||
{
|
||||
CrestronConsole.Print("Error Initilizing Crestron Logger: {0}", e);
|
||||
}
|
||||
|
||||
CrestronConsole.PrintLine("Initializing of CrestronLogger failed: {0}", e);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue