Skip to content

Commit 2693eb1

Browse files
authored
Merge pull request #64 from stackify/bug/RT-613
RT-613: StackifyLib - Nlog - Wrong server name on .net core
2 parents 2e830bb + 2480e5a commit 2693eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/StackifyLib/Models/EnvironmentDetail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static string GetEC2InstanceId()
189189
#else
190190
public static string GetDeviceName()
191191
{
192-
var deviceName = Process.GetCurrentProcess().MachineName;
192+
var deviceName = Environment.MachineName;
193193
var isDefaultDeviceNameEc2 = IsEc2MachineName(deviceName);
194194

195195
if (Config.IsEc2 == null || Config.IsEc2 == true || isDefaultDeviceNameEc2)

0 commit comments

Comments
 (0)