Skip to content

Commit

Permalink
Log on agent when wake command is received.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Jun 22, 2023
1 parent be8073d commit 60b6dbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Agent/Services/AgentHubConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ private void RegisterMessageHandlers()

_hubConnection.On("WakeDevice", async (string macAddress) =>
{
_logger.LogInformation(
"Received request to wake device with MAC address {macAddress}.",
macAddress);
await _wakeOnLanService.WakeDevice(macAddress);
});
}
Expand Down

0 comments on commit 60b6dbd

Please sign in to comment.