Skip to content

Commit

Permalink
Merge pull request #1061 from pkuehnel/feat/improveLogging
Browse files Browse the repository at this point in the history
feat(Program): log installation id as information
  • Loading branch information
pkuehnel authored Jan 9, 2024
2 parents af56149 + dd00773 commit 3e8cca8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion TeslaSolarCharger/Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

var tscConfigurationService = app.Services.GetRequiredService<ITscConfigurationService>();
var installationId = await tscConfigurationService.GetInstallationId().ConfigureAwait(false);
logger.LogTrace("Installation Id: {installationId}", installationId);
logger.LogInformation("Installation Id: {installationId}", installationId);

var chargingCostService = app.Services.GetRequiredService<IChargingCostService>();
await chargingCostService.DeleteDuplicatedHandleCharges().ConfigureAwait(false);
Expand Down
1 change: 0 additions & 1 deletion TeslaSolarCharger/Server/Services/TeslaFleetApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public async Task WakeUpCar(int carId)
var vin = await GetVinByCarId(carId).ConfigureAwait(false);
var result = await SendCommandToTeslaApi<DtoVehicleWakeUpResult>(vin, WakeUpRequest).ConfigureAwait(false);
await teslamateApiService.ResumeLogging(carId).ConfigureAwait(false);
//ToDo: Next line is never executed
await Task.Delay(TimeSpan.FromSeconds(20)).ConfigureAwait(false);
}

Expand Down

0 comments on commit 3e8cca8

Please sign in to comment.