Skip to content

Commit

Permalink
fix: add some debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed Apr 29, 2024
1 parent 0686a47 commit f2f937e
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions 3-series/MobileControlSystemController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,26 @@ private void SetupDefaultRoomMessengers()
AddDefaultDeviceMessenger(scheduleMessenger);
}

if (room is ITechPassword)
/*if (room is ITechPassword)
{
var techPasswordMessenger = new ITechPasswordMessenger($"{room.Key}-techPassword-{Key}",
string.Format("/room/{0}", room.Key), room as ITechPassword);
AddDefaultDeviceMessenger(techPasswordMessenger);
}
}*/

if (room is IShutdownPromptTimer)
try
{
var shutdownPromptTimerMessenger = new IShutdownPromptTimerMessenger($"{room.Key}-shutdownPromptTimer-{Key}",
string.Format("/room/{0}", room.Key), room as IShutdownPromptTimer);
if (room is IShutdownPromptTimer)
{
var shutdownPromptTimerMessenger = new IShutdownPromptTimerMessenger($"{room.Key}-shutdownPromptTimer-{Key}",
string.Format("/room/{0}", room.Key), room as IShutdownPromptTimer);

AddDefaultDeviceMessenger(shutdownPromptTimerMessenger);
AddDefaultDeviceMessenger(shutdownPromptTimerMessenger);
}
} catch(Exception ex)
{
Debug.LogMessage(ex, "Error adding Shutdown prompt messenger: {Exception}", this, ex);
}
}
}
Expand Down Expand Up @@ -584,9 +590,11 @@ private void AddWebApiPaths()

if (apiServer == null)
{
Debug.Console(0, this, "No API Server available");
Debug.Console(0, this, "No API Server available with key essentialsWebApi");
return;
}
}

Debug.LogMessage(Serilog.Events.LogEventLevel.Information, "Adding MC Routes to essentialsWebApi", this);

var routes = new List<HttpCwsRoute>
{
Expand Down

0 comments on commit f2f937e

Please sign in to comment.