UberLogger icon indicating copy to clipboard operation
UberLogger copied to clipboard

Error when parsing invalid linenumber to int32

Open Thendon opened this issue 1 year ago • 0 comments

When parsing an invalid linenumber in ExtractInfoFromUnityMessage to int32 Uberlogger is throwing an error. Happened with logs from the Oculus SDK for some reason. To fix this issue I just changed this line.

//lineNumber = Convert.ToInt32(firstMatch.Groups[2].Value);
int.TryParse(firstMatch.Groups[2].Value, out lineNumber);

Thendon avatar Aug 28 '23 23:08 Thendon