Skip to content

Commit 4d9efc2

Browse files
committed
style: 调整日志注释
1 parent e417a0a commit 4d9efc2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

framework/src/Bing.Logging.Serilog/Bing/Logging/Serilog/Enrichers/LogContextEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
3232
_context = accessor.Context;
3333
if (_context == null)
3434
return;
35-
RemoveProperties(logEvent);
35+
//RemoveProperties(logEvent);
3636
AddDuration(logEvent, propertyFactory);
3737
AddTraceId(logEvent, propertyFactory);
3838
AddUserId(logEvent, propertyFactory);

framework/tests/Bing.Logging.Serilog.Tests/LogTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Diagnostics;
43
using Bing.Helpers;
54
using Bing.Logging.Tests.Samples;
65
using Microsoft.Extensions.DependencyInjection;
@@ -25,7 +24,6 @@ public LogTest(IServiceProvider serviceProvider, ILog<LogTest> log, ILogContextA
2524
{
2625
serviceProvider.UseBing();
2726
_log = log;
28-
accessor.Context = new LogContext {Stopwatch = Stopwatch.StartNew(), TraceId = Id.NewString()};
2927
}
3028

3129
/// <summary>

0 commit comments

Comments
 (0)