Skip to content

Commit ef0993a

Browse files
Added logging info
1 parent d3d2f71 commit ef0993a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Sentry/PlatformAbstractions/RuntimeInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,24 @@ internal static SentryRuntime WithAdditionalProperties(this SentryRuntime runtim
3838

3939
internal static SentryRuntime? Parse(string? rawRuntimeDescription, string? name = null)
4040
{
41+
Console.WriteLine($"{nameof(rawRuntimeDescription)}: {rawRuntimeDescription}, {nameof(name)}: {name}");
4142
if (rawRuntimeDescription == null)
4243
{
44+
Console.WriteLine("rawRuntimeDescription is null");
4345
return name == null ? null : new SentryRuntime(name);
4446
}
4547

4648
var match = RuntimeParseRegex.Match(rawRuntimeDescription);
4749
if (match.Success)
4850
{
51+
Console.WriteLine("Regex matched: " + match.Value);
4952
return new SentryRuntime(
5053
name ?? (match.Groups["name"].Value == string.Empty ? null : match.Groups["name"].Value.Trim()),
5154
match.Groups["version"].Value == string.Empty ? null : match.Groups["version"].Value.Trim(),
5255
raw: rawRuntimeDescription);
5356
}
5457

58+
Console.WriteLine("No regex match");
5559
return new SentryRuntime(name, raw: rawRuntimeDescription);
5660
}
5761

0 commit comments

Comments
 (0)