Skip to content

Commit

Permalink
Merge pull request #11 from dls314/patch-1
Browse files Browse the repository at this point in the history
Update EnvironmentUserNameEnricher.GetEnvironmentUserName in EnvironmentUserNameEnricher.cs
  • Loading branch information
nblumhardt authored Nov 22, 2016
2 parents ea1e8f8 + 2ba86ca commit ee2aca0
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 ee2aca0

Please sign in to comment.