Skip to content

Commit 4845646

Browse files
committed
Attempt to get more information populated as getting arch is more likely to throw an error.
1 parent 20998ed commit 4845646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exceptionless/Services/DefaultEnvironmentInfoCollector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ private void PopulateRuntimeInfo(EnvironmentInfo info) {
198198
#elif NET45
199199
info.OSName = computerInfo.OSFullName;
200200
info.OSVersion = computerInfo.OSVersion;
201-
info.Architecture = Is64BitOperatingSystem() ? "x64" : "x86";
202201
info.RuntimeVersion = Environment.Version.ToString();
202+
info.Architecture = Is64BitOperatingSystem() ? "x64" : "x86";
203203
#endif
204204
} catch (Exception ex) {
205205
_log.FormattedWarn(typeof(DefaultEnvironmentInfoCollector), "Unable to get populate runtime info. Error message: {0}", ex.Message);
206206
}
207207
#endif
208208
}
209-
209+
210210
#if NETSTANDARD
211211
private string GetOSName(string osDescription) {
212212
if (String.IsNullOrEmpty(osDescription))

0 commit comments

Comments
 (0)