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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTJiZmU0NGMxNmRjYTc0OWRhZTJkNTY4Mjc0ZTQ4Njg3ZGU1N2MxZA==
4
+ MTFjNGZmNzhlOWRmMDIxZWM3M2RmYmU3ODg0NzViMmRlZTQ1ZWZhZA==
5
5
  data.tar.gz: !binary |-
6
- MjU4ZjYwZGJmY2I3NTcwMDkyMjJmNzc4N2QzNTgxYzdlYTExOGIxMA==
6
+ MmJlZDQ1NWY5ZTJhN2ZjOGJhOGM2OTQ4ZmZiZWRhNWMxM2JiYzE5Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGExMzVjOTMyY2NjNmUwMDY1YTkwNzdlNjkwNGIzMmYzNTQyNTdmMWY2ODEx
10
- NzcyMjVkYWI0ZjRmN2EyNWU3OWVhMGFmZjgyY2I2Njc2YjQwYzdkOTg4YzFh
11
- ZTI2MzQwYjQ4NzEzYzc5ODQxODgyYTRjMWI4NWNlNjAxNDkyYzg=
9
+ NmJjMDM5ZTUzOTFjNjMwN2ZkZTU0YWNkNjRiNjk3YTVkY2IxNTQzMTNmMTE2
10
+ NDRjYTc4NDYyNDI5ZTM1NTdjNjkyNGRmYzBhYmMxMWRmOWJlMDJmZTMxYzEz
11
+ ODdjM2Y3MjdkYmQzZDQyMjU1YzViZThmYmVjMzkxN2RmOGE3ODg=
12
12
  data.tar.gz: !binary |-
13
- YmEyN2JiYmFkNGZkN2Y2NDg3ZmMwZTQ4ZDZiOGY1ZDg1NTZlMDBlMzVmMzAz
14
- MDZhYjY2YmVkMDA4NzJhOWY5NGE3NDUwMzMzZjYxNzAwM2QyNTVjNmNlYjE1
15
- YThmODJlMTU1YzJjODJkNmJhYWFiZWI4ZjFlYmMyNTllMTk5NTc=
13
+ MTk0OTFjYjAxZTVkOGNhN2JkZTRhYmIxMjcxOGQ2MjBjMWE0YjA4NjMzYTFi
14
+ NDE2ZjU5NjljYjAwNTZhYmJiOWY4YzA3Yjc0NzFiYWUwZmVkZWQ3Y2Y3ZGI5
15
+ NzQyZDEwYmU4YTU1ZGFjYWI2MThkMzgyNDgwZjY1YTA1ZWRmY2E=
@@ -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
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module LogDNA
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
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 KEY', options)
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby