Skip to content

Commit

Permalink
Merge pull request #64 from bing-framework/dev_3.1
Browse files Browse the repository at this point in the history
发布 2.2.8
  • Loading branch information
jianxuanbing authored Jan 5, 2023
2 parents 014c2bc + 5ec4a8a commit 60ac8c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion framework/src/Bing.Logging/Bing/Logging/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ protected virtual void ConvertStateToContent()
{
if (item.Value.SafeString().IsEmpty())
continue;
LogProperties.Add(item.Key, item.Value);
if (LogProperties.ContainsKey(item.Key))
LogProperties[item.Key] = item.Value;
else
LogProperties.Add(item.Key, item.Value);
}
}

Expand Down
7 changes: 4 additions & 3 deletions framework/tests/Bing.Logging.Serilog.Tests/LogTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ public void Test_LogTrace_Message_9()
_log.EventId(119)
.Message("Test_LogTrace_Message_9_{id}", $"id_{Id.NewString()}")
.State(new Product { Code = "a", Name = "b", Price = 123 })
.Property("Age","18")
.Property("Description","hello")
.Property("Code", "a")
.Property("Age", "18")
.Property("Description", "hello")
.LogTrace();
}

Expand Down Expand Up @@ -142,4 +143,4 @@ public void Test_LogTrace_Property_2()
.State(new Product { Code = "a", Name = "b", Price = 123 })
.LogTrace();
}
}
}
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<VersionMajor>2</VersionMajor>
<VersionMinor>2</VersionMinor>
<VersionPatch>7</VersionPatch>
<VersionPatch>8</VersionPatch>
<VersionQuality>20221020-1</VersionQuality>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<!--<VersionSuffix>preview-$(VersionQuality)</VersionSuffix>-->
Expand Down

0 comments on commit 60ac8c9

Please sign in to comment.