This repository was archived by the owner on Oct 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ Those configuration options are documented below:
166166 autoBreadcrumbs: {
167167 ' console' : false , // console logging
168168 ' http' : true , // http and https requests
169- ' pg' : true , // postgresql queries from pg module
170169 }
171170
172171 .. describe :: maxBreadcrumbs
Original file line number Diff line number Diff line change @@ -113,20 +113,6 @@ var wrappers = {
113113 return req ;
114114 } ;
115115 } , originals ) ;
116- } ,
117-
118- pg : function ( Raven ) {
119- // Using fill helper here is hard because of `this` binding
120- var pg = require ( 'pg' ) ;
121- var origQuery = pg . Connection . prototype . query ;
122- pg . Connection . prototype . query = function ( text ) {
123- Raven . captureBreadcrumb ( {
124- category : 'postgres' ,
125- message : text
126- } ) ;
127- origQuery . call ( this , text ) ;
128- } ;
129- originals . push ( [ pg . Connection . prototype , 'query' , origQuery ] ) ;
130116 }
131117} ;
132118
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ extend(Raven.prototype, {
5656 var autoBreadcrumbDefaults = {
5757 console : false ,
5858 http : false ,
59- pg : false
6059 } ;
6160 // default to 30, don't allow higher than 100
6261 this . maxBreadcrumbs = Math . max ( 0 , Math . min ( options . maxBreadcrumbs || 30 , 100 ) ) ;
You can’t perform that action at this time.
0 commit comments