Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Change default maxBreadcrumbs to 30
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisJEllis committed Dec 13, 2016
1 parent 430df67 commit 2c90e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ extend(Raven.prototype, {
http: false,
pg: false
};
this.maxBreadcrumbs = Math.max(0, Math.min(options.maxBreadcrumbs || 100, 100));
// default to 30, don't allow higher than 100
this.maxBreadcrumbs = Math.max(0, Math.min(options.maxBreadcrumbs || 30, 100));
this.autoBreadcrumbs = extend({}, autoBreadcrumbDefaults);
if (typeof options.autoBreadcrumbs !== 'undefined') {
for (var key in autoBreadcrumbDefaults) {
Expand Down

0 comments on commit 2c90e0f

Please sign in to comment.