Increases log verbosity during development
All checks were successful
Build, Push and Run Container / build (push) Successful in 24s

Configures logging to show more detailed information during development.
Improves logging for debugging and troubleshooting authentication issues.
This commit is contained in:
2025-08-18 14:22:32 +02:00
parent ce5852cbe8
commit 1aa42c1cd6
2 changed files with 4 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ public class TeslaAuthenticatorService : ITeslaAuthenticatorService
HttpResponseMessage response = await httpClient.PostAsJsonAsync($"{euBaseURL}/api/1/partner_accounts", postBody, cancellationToken); HttpResponseMessage response = await httpClient.PostAsJsonAsync($"{euBaseURL}/api/1/partner_accounts", postBody, cancellationToken);
bool success = response.IsSuccessStatusCode; bool success = response.IsSuccessStatusCode;
logger.LogInformation("Application registration result: {Success}", success ? "Success" : "Failed"); logger.LogInformation("Application response code: {Success}", success ? "Success" : "Failed");
//Load response from server //Load response from server
string json = await response.Content.ReadAsStringAsync(cancellationToken); string json = await response.Content.ReadAsStringAsync(cancellationToken);

View File

@@ -1,8 +1,9 @@
{ {
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Trace",
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning",
"System.Net.Http.HttpClient": "Warning"
} }
} }
} }