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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9958b51a6821adf3e371746dde1dee7d661e4f9b40e492f69e249ed85d22ca80
4
- data.tar.gz: 2b9db72344079fe012179853c192385a51419f082d44f1883b35401aba6bc869
3
+ metadata.gz: 0af39db5d892f490e82d5c495f4e51b0646f418a13d4b940566c997aff7e5b1a
4
+ data.tar.gz: c3e756d0ecc74b2d8128d43914cf677458edce92c8d3bf261047f23a8ae54d65
5
5
  SHA512:
6
- metadata.gz: 9826d94548c436782434831a5161267a6b1d0e8814441cde1b2cb51f53257d015b42c6ff7dabc422b42bd045432d34d8bf241e4305cad4a59d5cc0ec156a8f6d
7
- data.tar.gz: f71fb5e1af5d3cb71b50880c120f91e1eb573bd72fe671a32ec96b90a093b0986433db76a7c0f892051a1a1131c15a432018247a90d836a255ffaf162a98f130
6
+ metadata.gz: abd7b6e30cbaa22c698259a59fdaf31a1f46b5c194a14ee9f24b03db08140876c19d25784038235574d9ddbd4b2429ae09f85400291767be88bae60adf023354
7
+ data.tar.gz: e99b8366d6dcd585f0472091e48b3e4f17f350a3d7ff3a8d97c05022e821a7ab1c05daf5420a512eec76e18ea7e53c3367429bddd53dfeea6488951c9e844c9c
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Logtail
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-06-16 00:00:00.000000000 Z
11
+ date: 2021-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack