mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-13 11:44:54 +00:00
chore: add logging for current scenario searching
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
namespace PepperDash.Essentials.Core
|
||||
using PepperDash.Core;
|
||||
using Serilog.Events;
|
||||
|
||||
namespace PepperDash.Essentials.Core
|
||||
{
|
||||
public class RouteRequest
|
||||
{
|
||||
@@ -11,10 +14,13 @@
|
||||
|
||||
public void HandleCooldown(object sender, FeedbackEventArgs args)
|
||||
{
|
||||
Debug.LogMessage(LogEventLevel.Information, "Handling cooldown route request: {destination}:{destinationPort} -> {source}:{sourcePort} {type}", null, Destination.Key, DestinationPort.Key, Source.Key, SourcePort.Key, SignalType.ToString());
|
||||
|
||||
var coolingDevice = sender as IWarmingCooling;
|
||||
|
||||
if (args.BoolValue == false)
|
||||
{
|
||||
Debug.LogMessage(LogEventLevel.Information, "Cooldown complete. Making route from {destination} to {source}", Destination.Key, Source.Key);
|
||||
Destination.ReleaseAndMakeRoute(Source, SignalType);
|
||||
|
||||
if (sender == null) return;
|
||||
|
||||
Reference in New Issue
Block a user