mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +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
|
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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue