From dd00773a568c10f09eed4358fcdbbef181c4465f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20K=C3=BChnel?= Date: Mon, 8 Jan 2024 12:42:04 +0100 Subject: [PATCH] feat(Program): log installation id as information --- TeslaSolarCharger/Server/Program.cs | 2 +- TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TeslaSolarCharger/Server/Program.cs b/TeslaSolarCharger/Server/Program.cs index bcbf65dcf..a8dc66a84 100644 --- a/TeslaSolarCharger/Server/Program.cs +++ b/TeslaSolarCharger/Server/Program.cs @@ -76,7 +76,7 @@ var tscConfigurationService = app.Services.GetRequiredService(); var installationId = await tscConfigurationService.GetInstallationId().ConfigureAwait(false); - logger.LogTrace("Installation Id: {installationId}", installationId); + logger.LogInformation("Installation Id: {installationId}", installationId); var chargingCostService = app.Services.GetRequiredService(); await chargingCostService.DeleteDuplicatedHandleCharges().ConfigureAwait(false); diff --git a/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs b/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs index d464ca401..3e72dde78 100644 --- a/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs +++ b/TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs @@ -94,7 +94,6 @@ public async Task WakeUpCar(int carId) var vin = await GetVinByCarId(carId).ConfigureAwait(false); var result = await SendCommandToTeslaApi(vin, WakeUpRequest).ConfigureAwait(false); await teslamateApiService.ResumeLogging(carId).ConfigureAwait(false); - //ToDo: Next line is never executed await Task.Delay(TimeSpan.FromSeconds(20)).ConfigureAwait(false); }