From 728a3ff6ee6188e0ab7cd86fbfa60c3ce5fcd84e Mon Sep 17 00:00:00 2001 From: awaescher Date: Tue, 14 May 2024 23:27:34 +0200 Subject: [PATCH] Log which inverter is going to be connected --- MaxPower/HostedServices/ExporterService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MaxPower/HostedServices/ExporterService.cs b/MaxPower/HostedServices/ExporterService.cs index f12bcbd..6c08dd3 100644 --- a/MaxPower/HostedServices/ExporterService.cs +++ b/MaxPower/HostedServices/ExporterService.cs @@ -24,6 +24,8 @@ protected override async Task ExecuteAsync(CancellationToken cancellationToken) { foreach (var inverter in Inverters) { + Logger.LogInformation("Trying inverter \"{inverterId}\" at \"{inverterIp}:{inverterPort}\".", inverter.Id, inverter.Ip, inverter.Port); + try { var data = await MaxTalkClient.RequestAsync(inverter.Ip, inverter.Id, inverter.Port);