Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
seungyongshim committed Feb 18, 2024
1 parent d165862 commit 83d955c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ Generic server error 500
```
```

## 개인정보 로깅
* https://andrewlock.net/redacting-sensitive-data-with-microsoft-extensions-compliance/
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class ResponseAddTraceIdFilter : IEndpointFilter
contentType: MediaTypeNames.Application.Json,
statusCode: 200
),
IResult v => Results.Text
Ok v => Results.Text
(
$$"""{"traceId":"{{id}}"}""",
contentType: MediaTypeNames.Application.Json,
Expand All @@ -54,6 +54,7 @@ public class ResponseAddTraceIdFilter : IEndpointFilter
_ => 200
}
),
IResult v => v,
{ } v => Results.Text
(
AddTraceId(v).ToJsonString(serializerOptions),
Expand Down
1 change: 1 addition & 0 deletions src/WebApplicationMinimalApi8/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
using var httpclient = ctx.RequestServices.GetRequiredService<IHttpClientFactory>().CreateClient("echo");
using var res = await httpclient.PostAsJsonAsync("post", json);
return await res.Content.ReadAsStringAsync();
//return Results.Text
Expand Down

0 comments on commit 83d955c

Please sign in to comment.