logtail 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logtail/log_entry.rb +3 -0
- data/lib/logtail/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0af39db5d892f490e82d5c495f4e51b0646f418a13d4b940566c997aff7e5b1a
|
4
|
+
data.tar.gz: c3e756d0ecc74b2d8128d43914cf677458edce92c8d3bf261047f23a8ae54d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abd7b6e30cbaa22c698259a59fdaf31a1f46b5c194a14ee9f24b03db08140876c19d25784038235574d9ddbd4b2429ae09f85400291767be88bae60adf023354
|
7
|
+
data.tar.gz: e99b8366d6dcd585f0472091e48b3e4f17f350a3d7ff3a8d97c05022e821a7ab1c05daf5420a512eec76e18ea7e53c3367429bddd53dfeea6488951c9e844c9c
|
data/lib/logtail/log_entry.rb
CHANGED
@@ -120,6 +120,7 @@ module Logtail
|
|
120
120
|
|
121
121
|
calling_frame_index = last_logger_invocation_index + 1
|
122
122
|
frame = caller_locations[calling_frame_index]
|
123
|
+
return {} if frame.nil?
|
123
124
|
|
124
125
|
return convert_to_runtime_context(frame)
|
125
126
|
end
|
@@ -138,6 +139,8 @@ module Logtail
|
|
138
139
|
|
139
140
|
def path_relative_to_app_root(frame)
|
140
141
|
Pathname.new(frame.absolute_path).relative_path_from(root_path).to_s
|
142
|
+
rescue
|
143
|
+
frame.absolute_path
|
141
144
|
end
|
142
145
|
|
143
146
|
def root_path
|
data/lib/logtail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logtail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logtail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|