File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ ## 6.12.1 (05 Sep 2019)
5+
6+ ### Fixes
7+
8+ * Account for missing ` :binds ` key in ` sql.active_record ` ActiveSupport notifications.
9+ | [ #555 ] ( https://github.com/bugsnag/bugsnag-ruby/issues/555 )
10+ | [ #565 ] ( https://github.com/bugsnag/bugsnag-ruby/pull/565 )
11+ * Remove duplicate attribute declaration warning for ` track_sessions ` in Configuration.
12+ | [ #510 ] ( https://github.com/bugsnag/bugsnag-ruby/pull/510 )
13+ | [ pocke] ( https://github.com/pocke )
14+
415## 6.12.0 (28 Aug 2019)
516
617### Enhancements
Original file line number Diff line number Diff line change 1- 6.12.0
1+ 6.12.1
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class Configuration
3737 attr_accessor :runtime_versions
3838 attr_accessor :ignore_classes
3939 attr_accessor :auto_capture_sessions
40- attr_accessor :track_sessions
4140
4241 ##
4342 # @return [String] URL error notifications will be delivered to
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def event_subscription(event)
7979 filtered_data = data . slice ( *event [ :allowed_data ] )
8080 filtered_data [ :event_name ] = event [ :id ]
8181 filtered_data [ :event_id ] = event_id
82- if event [ :id ] == "sql.active_record"
82+ if event [ :id ] == "sql.active_record" && data . key? ( :binds )
8383 binds = data [ :binds ] . each_with_object ( { } ) { |bind , output | output [ bind . name ] = '?' if defined? ( bind . name ) }
8484 filtered_data [ :binds ] = JSON . dump ( binds ) unless binds . empty?
8585 end
You can’t perform that action at this time.
0 commit comments