Skip to content

Commit

Permalink
Merge pull request #139 from Countly/fix_breadcrumb
Browse files Browse the repository at this point in the history
[windows] breadcrumb limit
  • Loading branch information
turtledreams authored Jun 25, 2024
2 parents 7ea374f + a9b30d5 commit c1d6b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion countlyCommon/countlyCommon/CountlyBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ public void AddCrashBreadCrumb(string breadCrumb)
Debug.Assert(breadCrumb != null);
string validLog = breadCrumb.Length > Countly.Instance.Configuration.MaxValueSize ? breadCrumb.Substring(0, Countly.Instance.Configuration.MaxValueSize) : breadCrumb;

if (Countly.Instance.CrashBreadcrumbs.Count == Countly.Instance.Configuration.MaxBreadcrumbCount) {
if (Countly.Instance.CrashBreadcrumbs.Count >= Countly.Instance.Configuration.MaxBreadcrumbCount) {
Countly.Instance.CrashBreadcrumbs.Dequeue();
}

Expand Down

0 comments on commit c1d6b45

Please sign in to comment.