Skip to content

Commit

Permalink
Update EnvironmentUserNameEnricher.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dls314 authored Nov 22, 2016
1 parent ea1e8f8 commit 2ba86ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ private static string GetEnvironmentUserName()
var userDomainName = Environment.UserDomainName;
var userName = Environment.UserName;
#else
var userDomainName = Environment.GetEnvironmentVariable("USERNAME");
var userName = Environment.GetEnvironmentVariable("USERDOMAIN");
var userDomainName = Environment.GetEnvironmentVariable("USERDOMAIN");
var userName = Environment.GetEnvironmentVariable("USERNAME");
#endif
return !string.IsNullOrWhiteSpace(userDomainName) ? $@"{userDomainName}\{userName}" : userName;
}
Expand Down

0 comments on commit 2ba86ca

Please sign in to comment.