Skip to content

Commit f3af355

Browse files
Include additional logging in ms log ouput
1 parent 4f59a25 commit f3af355

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Certify.Server/Certify.Server.Core/Certify.Server.Core/Controllers/ManagedCertificateController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public async Task<List<StatusMessage>> TestChallengeResponse(ManagedCertificate
8686
var logList = new List<string>();
8787
using (var log = new LoggerConfiguration()
8888

89+
.Enrich.FromLogContext()
8990
.WriteTo.Sink(new ProgressLogSink(progressIndicator, managedCertificate, _certifyManager))
9091
.CreateLogger())
9192
{
@@ -109,7 +110,7 @@ public async Task<List<StatusMessage>> PerformChallengeCleanup(ManagedCertificat
109110
// perform challenge response test, log to string list and return in result
110111
var logList = new List<string>();
111112
using (var log = new LoggerConfiguration()
112-
113+
.Enrich.FromLogContext()
113114
.WriteTo.Sink(new ProgressLogSink(progressIndicator, managedCertificate, _certifyManager))
114115
.CreateLogger())
115116
{

src/Certify.Service/Controllers/ManagedCertificateController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public async Task<List<StatusMessage>> TestChallengeResponse(ManagedCertificate
9090
// perform challenge response test, log to string list and return in result
9191
var logList = new List<string>();
9292
using (var log = new LoggerConfiguration()
93-
93+
.Enrich.FromLogContext()
9494
.WriteTo.Sink(new ProgressLogSink(progressIndicator, managedCertificate, _certifyManager))
9595
.CreateLogger())
9696
{
@@ -115,6 +115,7 @@ public async Task<List<StatusMessage>> PerformChallengeCleanup(ManagedCertificat
115115
var logList = new List<string>();
116116
using (var log = new LoggerConfiguration()
117117

118+
.Enrich.FromLogContext()
118119
.WriteTo.Sink(new ProgressLogSink(progressIndicator, managedCertificate, _certifyManager))
119120
.CreateLogger())
120121
{

0 commit comments

Comments
 (0)