Increases log verbosity during development
All checks were successful
Build, Push and Run Container / build (push) Successful in 24s
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:
@@ -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);
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Trace",
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning",
|
||||||
|
"System.Net.Http.HttpClient": "Warning"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user