module Neo4j::Core::Logging
Constants
- NEO4J_CORE_GEM_ROOT
Public Class Methods
active_support_gem_path()
click to toggle source
# File lib/neo4j/core/logging.rb 36 def active_support_gem_path 37 return if !defined?(::ActiveSupport::Notifications) 38 39 @active_support_gem_path ||= File.expand_path('../../..', ActiveSupport::Notifications.method(:subscribe).source_location[0]) 40 end
first_external_path_and_line(callstack)
click to toggle source
# File lib/neo4j/core/logging.rb 6 def first_external_path_and_line(callstack) 7 line = callstack.find do |frame| 8 frame.absolute_path && !ignored_callstack(frame.absolute_path) 9 end 10 11 offending_line = line || callstack.first 12 13 [offending_line.path, 14 offending_line.lineno] 15 end
ignored_callstack(path)
click to toggle source
# File lib/neo4j/core/logging.rb 19 def ignored_callstack(path) 20 paths_to_ignore.any?(&path.method(:start_with?)) 21 end
neo4j_gem_path()
click to toggle source
# File lib/neo4j/core/logging.rb 30 def neo4j_gem_path 31 return if !defined?(::Rails.root) 32 33 @neo4j_gem_path ||= File.expand_path('../../..', Neo4j::ActiveBase.method(:current_session).source_location[0]) 34 end
paths_to_ignore()
click to toggle source
# File lib/neo4j/core/logging.rb 23 def paths_to_ignore 24 @paths_to_ignore ||= [NEO4J_CORE_GEM_ROOT, 25 RbConfig::CONFIG['rubylibdir'], 26 neo4j_gem_path, 27 active_support_gem_path].compact 28 end