Skip to content

Commit 47aaf46

Browse files
committed
🔖 bump version to 2.0.12, fixes LOG4NET-(652|653)
1 parent bf81ef2 commit 47aaf46

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "log4net",
3-
"version": "2.0.9",
3+
"version": "2.0.12",
44
"description": "Log4Net is a logging framework for .NET",
55
"scripts": {
66
"test": "cross-env NUNIT_PROCESS=Single MAX_CONCURRENCY=1 run-s clean-build \"zarro test-dotnet\" run-dotnet-core-tests",

src/log4net/Core/LoggingEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,9 +937,9 @@ private static string TryGetCurrentUserName()
937937
// some undefined set of SecurityPermission flags.
938938
LogLog.Debug(
939939
declaringType,
940-
"Security exception while trying to get current windows identity. Error Ignored. Empty user name."
940+
"Security exception while trying to get current windows identity. Error Ignored."
941941
);
942-
return null;
942+
return Environment.UserName;
943943
}
944944
catch
945945
{

src/log4net/log4net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<PackageId>log4net</PackageId>
4-
<Version>2.0.11</Version>
4+
<Version>2.0.12</Version>
55
<Title>Apache log4net</Title>
66
<Product>Apache log4net</Product>
77
<Description>

0 commit comments

Comments
 (0)