logdna 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/logdna.rb +0 -2
- data/lib/logdna/client.rb +0 -2
- data/lib/logdna/version.rb +1 -1
- data/test.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTFjNGZmNzhlOWRmMDIxZWM3M2RmYmU3ODg0NzViMmRlZTQ1ZWZhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmJlZDQ1NWY5ZTJhN2ZjOGJhOGM2OTQ4ZmZiZWRhNWMxM2JiYzE5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmJjMDM5ZTUzOTFjNjMwN2ZkZTU0YWNkNjRiNjk3YTVkY2IxNTQzMTNmMTE2
|
10
|
+
NDRjYTc4NDYyNDI5ZTM1NTdjNjkyNGRmYzBhYmMxMWRmOWJlMDJmZTMxYzEz
|
11
|
+
ODdjM2Y3MjdkYmQzZDQyMjU1YzViZThmYmVjMzkxN2RmOGE3ODg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTk0OTFjYjAxZTVkOGNhN2JkZTRhYmIxMjcxOGQ2MjBjMWE0YjA4NjMzYTFi
|
14
|
+
NDE2ZjU5NjljYjAwNTZhYmJiOWY4YzA3Yjc0NzFiYWUwZmVkZWQ3Y2Y3ZGI5
|
15
|
+
NzQyZDEwYmU4YTU1ZGFjYWI2MThkMzgyNDgwZjY1YTA1ZWRmY2E=
|
data/lib/logdna.rb
CHANGED
@@ -145,14 +145,12 @@ module Logdna
|
|
145
145
|
if defined? @@client and !@@client.nil?
|
146
146
|
@@client.exitout()
|
147
147
|
end
|
148
|
-
exit!
|
149
148
|
end
|
150
149
|
|
151
150
|
at_exit do
|
152
151
|
if defined? @@client and !@@client.nil?
|
153
152
|
@@client.exitout()
|
154
153
|
end
|
155
|
-
exit!
|
156
154
|
end
|
157
155
|
end
|
158
156
|
end
|
data/lib/logdna/client.rb
CHANGED
@@ -143,8 +143,6 @@ module Logdna
|
|
143
143
|
http.request(@@request)
|
144
144
|
end
|
145
145
|
|
146
|
-
puts "Result: #{@response.body}" unless request_messages.empty?
|
147
|
-
|
148
146
|
# don't kill @task if this was executed from self.buffer
|
149
147
|
# don't kill @task if there are queued messages
|
150
148
|
unless @buffer_over_limit || @messages.any? || @task.nil?
|
data/lib/logdna/version.rb
CHANGED
data/test.rb
CHANGED
@@ -5,9 +5,9 @@ require_all 'lib'
|
|
5
5
|
options = {hostname: "new_ruby", meta:{:once => {:first => "nested1", :another => "nested2"}}}
|
6
6
|
|
7
7
|
|
8
|
-
logger1 = Logdna::Ruby.new('Your API
|
8
|
+
logger1 = Logdna::Ruby.new('Your API Key', options)
|
9
9
|
|
10
|
-
logger1.log('This is the start of test')
|
10
|
+
logger1.log('**************** This is the start of test ****************')
|
11
11
|
logger1.env = 'STAGING'
|
12
12
|
logger1.app = 'HELLO'
|
13
13
|
logger1.warn('Warn message with Staging and Hello')
|
@@ -35,6 +35,8 @@ logger1.log('This is debug message')
|
|
35
35
|
logger1.add('this should not be supported')
|
36
36
|
logger1.fatal('Does this continue as fatal?')
|
37
37
|
logger1.log('This should be debug')
|
38
|
+
logger1.level = Logger::WARN
|
39
|
+
logger1.log('**************** This is the end of test ****************')
|
38
40
|
|
39
41
|
|
40
42
|
=begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logdna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gun Woo Choi, Derek Zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|