Skip to content

Commit 88fd3b0

Browse files
witskeeperejsmith
andauthored
fix:wrong MachineName in v4.4.0 (#234)
fix:wrong MachineName in v4.4.0 Co-authored-by: Eric J. Smith <[email protected]>
1 parent 6ccf007 commit 88fd3b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Exceptionless/Services/DefaultEnvironmentInfoCollector.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ private void PopulateRuntimeInfo(EnvironmentInfo info) {
145145
if (_config.IncludeMachineName) {
146146
try {
147147
info.MachineName = Environment.MachineName;
148-
Process process = Process.GetCurrentProcess();
149-
info.MachineName = process.MachineName;
150148
} catch (Exception ex) {
151149
_log.FormattedWarn(typeof(DefaultEnvironmentInfoCollector), "Unable to get machine name. Error message: {0}", ex.Message);
152150
}
@@ -271,4 +269,4 @@ public static bool MethodExists(string moduleName, string methodName) {
271269
}
272270
#endif
273271
}
274-
}
272+
}

0 commit comments

Comments
 (0)