Skip to content

Commit

Permalink
Adds check to ensure that statement only prints if DoNotLoadOnNextBoo…
Browse files Browse the repository at this point in the history
…t is set to true
  • Loading branch information
ndorin committed Feb 3, 2020
1 parent 1d8ac48 commit e4d7e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Pepperdash Core/Pepperdash Core/Logging/Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ static Debug()
Level = context.Level;
DoNotLoadOnNextBoot = context.DoNotLoadOnNextBoot;

CrestronConsole.PrintLine(string.Format("Program {0} will not load config after next boot. Use console command go:{0} to load the config manually", InitialParametersClass.ApplicationNumber));
if(DoNotLoadOnNextBoot)
CrestronConsole.PrintLine(string.Format("Program {0} will not load config after next boot. Use console command go:{0} to load the config manually", InitialParametersClass.ApplicationNumber));

try
{
Expand Down

0 comments on commit e4d7e98

Please sign in to comment.