Skip to content

Commit

Permalink
Additional debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
aantix committed May 15, 2023
1 parent 2100e17 commit 44fc729
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/callstacking/rails/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class Engine < ::Rails::Engine

config.after_initialize do
Logger.log "Call Stacking loading (#{Callstacking::Rails::Env.environment})"


Logger.log("English defined? #{Object.const_defined?('English')}")

spans[Thread.current.object_id]||=Spans.new
instrumenter.add_span(spans[Thread.current.object_id])

Expand Down
3 changes: 2 additions & 1 deletion lib/callstacking/rails/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def on_load
path = tp.path

Logger.log("Callstacking::Rails::Loader.on_load #{klass} #{path}")

Logger.log("English defined? #{Object.const_defined?('English')}")

excluded_klass = excluded.any? { |ex| path =~ /#{ex}/ }

if path =~ /#{::Rails.root.to_s}/ &&
Expand Down

0 comments on commit 44fc729

Please sign in to comment.