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

Commit

Permalink
Remove caller inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Sep 5, 2016
1 parent 73e9a3c commit 95f397c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/timber/current_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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
1 change: 1 addition & 0 deletions lib/timber/log_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class InvalidMessageError < ArgumentError; end
attr_reader :context_snapshot, :dt, :line_indexes, :message

def initialize(message)
puts message.inspect
@dt = Time.now.utc # Capture the time as soon as possible
message = message.to_s # TODO: handle converting objects to json or kv?
if message.bytesize > APISettings::MESSAGE_BYTE_SIZE_MAX
Expand Down

0 comments on commit 95f397c

Please sign in to comment.