We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356994c commit 797a823Copy full SHA for 797a823
lib/logtail/log_entry.rb
@@ -120,6 +120,7 @@ def current_runtime_context
120
121
calling_frame_index = last_logger_invocation_index + 1
122
frame = caller_locations[calling_frame_index]
123
+ return {} if frame.nil?
124
125
return convert_to_runtime_context(frame)
126
end
@@ -138,6 +139,8 @@ def logtail_logger_frame?(frame)
138
139
140
def path_relative_to_app_root(frame)
141
Pathname.new(frame.absolute_path).relative_path_from(root_path).to_s
142
+ rescue
143
+ frame.absolute_path
144
145
146
def root_path
lib/logtail/version.rb
@@ -1,3 +1,3 @@
1
module Logtail
2
- VERSION = "0.1.5"
+ VERSION = "0.1.6"
3
0 commit comments