oohlalog 1.0.1 → 1.0.2

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
- ZTcyNGQ3ZDI4OTUyODllZWIxM2IyODg3YzUxNzUyNGRmYWIxZThmYg==
4
+ ZjdiODczZWIzOGViYTBjN2YzOGVkNjJiN2YwYTVlZjgxMzMwODNjNA==
5
5
  data.tar.gz: !binary |-
6
- YTM0OWY1OTE4NzY2YWZjMzcyYmU5NmM4YWMwYjgyM2E2OTJkZDdmNA==
6
+ YjQ2N2Q5ZTlhY2Y4MjllZjIxZGM0MGJhNGNkNDI4YzgzM2JmZjkyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2ZjYzYzYjU1Mjk5MThlOGE4M2JiMGE2NzExZDM1NGQ5NGU4ODRiYzBiZDU3
10
- ZWVhZjkyOGU0OGNkMzI5MThiMWMyNDk3NDM4MjMxZWZjZjZkZDc3ZGUwYWVl
11
- NDkyM2U4MzNlOTIwZmE5ZGFmZTg1MDIwYzZlODk3NzYwYmQ5Y2E=
9
+ ZjlmOTc2YjRkZWViNTYzMTlkMzEyNWFmNGQ5OTMzZDEzZTZmYTBmNDI1ZjZk
10
+ NzU5ODFmNzk4ODc3YjljOGU4NjgyNTIwZTY2ZTA2ZmMzMTRmZjU3ZmE1NTlk
11
+ M2U2YTZmMmM4NzE4MGZiZjUyOGI1MDQ3YTQzMDkyMzYwOWRlYmQ=
12
12
  data.tar.gz: !binary |-
13
- Njk3MjY2ZjRmZDlhMTZjNWYzMGYyOWJhYWIxZThkMTJkYWE4MzM3Y2FlYzAw
14
- YjNhZjFkNGYzOWViZjJmZWUyNmZjZTcyYTQ1Njg0NjZhMTA0YTJiNjg5NWE1
15
- MTAzNzZlNmY0MzQ5MmRlNjBmNjgwOWM3MWY1YTJjYmQ4YjllZGU=
13
+ MTQ2OGU0ZmY5NDM1ZTMwYWYyMWI5YmJjNDY0NzI1ZjZhODBmZTJiNmRkNzEz
14
+ NmU3NDUzYTdhNTQ5OTliNzJlMDQ3MTllZjJlZjM1YmU1MTljZjI4YmZlMmI4
15
+ MGQ3MjFkZjIzMmMyYTczMTU1ZmE2NzI3MGRhMzU5YzgzNmUwZDQ=
@@ -28,9 +28,12 @@ class Oohlalog::Logger
28
28
  end
29
29
 
30
30
  def add(severity, message, category=nil, details=nil)
31
- return if message.nil? || message.empty?
31
+ return if message.nil? || message.to_s.empty?
32
32
  if severity >= self.level
33
- @buffer << {level: severity_string(severity), message: message.gsub(/\e\[(\d+)m/, '') , category: category, details: details, timestamp:Time.now.to_i * 1000, hostName: Socket.gethostname}
33
+ if details.nil? && defined?(message.backtrace)
34
+ details = message.backtrace.join("\n")
35
+ end
36
+ @buffer << {level: severity_string(severity), message: message.to_s.gsub(/\e\[(\d+)m/, '') , category: category, details: details, timestamp:Time.now.to_i * 1000, hostName: Socket.gethostname}
34
37
  check_buffer_size
35
38
  return
36
39
  end
@@ -1,3 +1,3 @@
1
1
  module Oohlalog
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oohlalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-08 00:00:00.000000000 Z
11
+ date: 2013-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails/Ruby Logger Tie-in for OohLaLog.com
14
14
  email: