lib/contrast/agent/static_analysis.rb in contrast-agent-3.15.0 vs lib/contrast/agent/static_analysis.rb in contrast-agent-3.16.0
- old
+ new
@@ -15,15 +15,15 @@
class << self
# After the first request is complete, we do a one-time manual catchup to review and
# report the already-loaded gems.
def catchup
@_catchup ||= begin
- with_contrast_scope do
- Contrast::Utils::GemfileReader.instance.map_loaded_classes
- send_inventory_message
- true
- end
- end
+ with_contrast_scope do
+ Contrast::Utils::GemfileReader.instance.map_loaded_classes
+ send_inventory_message
+ true
+ end
+ end
rescue StandardError => e
logger.warn('Unable to run post-initialization static analysis', e)
end
def send_inventory_message