Skip to content

Commit

Permalink
General refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Farshad DASHTI authored and Farshad DASHTI committed Aug 8, 2024
1 parent 759852c commit 36844f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PersonsApi/SerilogCustomEnrichers/ApiUserEnricher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
var httpContextModel = new HttpContextModel
{
Method = httpContext.Request.Method,
User = user?.UserName ?? "Unknow or not applicable"
User = user?.UserName ?? "Unknown or not applicable"

};

Expand Down
2 changes: 1 addition & 1 deletion PersonsApi/Swagger/SwaggerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SwaggerOptions : IConfigureNamedOptions<SwaggerGenOptions>

private const string ApiKeyName = "ApiKey";
private const string ServiceTitle = "Persons API";
private const string ServiceDescription = "The Academies API provides users with access to a variety of data " +
private const string ServiceDescription = "The Persons API provides users with access to a variety of data " +
"regarding academies and trusts in England.\n\n" +
"The available data includes general data acadamy transfers and " +
"applications to become an academy and is compiled from a variety of internal and " +
Expand Down
2 changes: 1 addition & 1 deletion PersonsApi/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Default": "Warning",
"Microsoft": "Information",
"Microsoft.Hosting.Lifetime": "Information"
},
Expand Down
8 changes: 4 additions & 4 deletions PersonsApi/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Information",
"Microsoft.Hosting.Lifetime": "Information",
"Default": "Warning",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning",
"Microsoft.AspNetCore": "Warning"
},
"Console": {
Expand All @@ -27,7 +27,7 @@
"Serilog.Sinks.ApplicationInsights"
],
"MinimumLevel": {
"Default": "Information",
"Default": "Warning",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
Expand Down

0 comments on commit 36844f8

Please sign in to comment.