Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Add caller inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Sep 5, 2016
1 parent 5d2c48e commit 73e9a3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/timber/current_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def add(*contexts, &_block)
contexts.each do |context|
stack << context
end
puts "Adding: #{caller.inspect}"
block_given? ? yield : self
ensure
remove(*contexts) if block_given?
Expand Down

0 comments on commit 73e9a3c

Please sign in to comment.