Skip to content

Commit

Permalink
fix:wrong MachineName in v4.4.0 (#234)
Browse files Browse the repository at this point in the history
fix:wrong  MachineName in v4.4.0

Co-authored-by: Eric J. Smith <eric@codesmithtools.com>
  • Loading branch information
witskeeper and ejsmith authored Jul 28, 2020
1 parent 6ccf007 commit 88fd3b0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ private void PopulateRuntimeInfo(EnvironmentInfo info) {
if (_config.IncludeMachineName) {
try {
info.MachineName = Environment.MachineName;
Process process = Process.GetCurrentProcess();
info.MachineName = process.MachineName;
} catch (Exception ex) {
_log.FormattedWarn(typeof(DefaultEnvironmentInfoCollector), "Unable to get machine name. Error message: {0}", ex.Message);
}
Expand Down Expand Up @@ -271,4 +269,4 @@ public static bool MethodExists(string moduleName, string methodName) {
}
#endif
}
}
}

0 comments on commit 88fd3b0

Please sign in to comment.