Skip to content

Commit

Permalink
Merge pull request #64 from stackify/bug/RT-613
Browse files Browse the repository at this point in the history
RT-613: StackifyLib - Nlog - Wrong server name on .net core
  • Loading branch information
strvmarv authored Jan 11, 2018
2 parents 2e830bb + 2480e5a commit 2693eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/StackifyLib/Models/EnvironmentDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static string GetEC2InstanceId()
#else
public static string GetDeviceName()
{
var deviceName = Process.GetCurrentProcess().MachineName;
var deviceName = Environment.MachineName;
var isDefaultDeviceNameEc2 = IsEc2MachineName(deviceName);

if (Config.IsEc2 == null || Config.IsEc2 == true || isDefaultDeviceNameEc2)
Expand Down

0 comments on commit 2693eb1

Please sign in to comment.