act-fluent-logger-rails 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 029ec3e511f6dbc1e9ca367c6535723d09a3e5e7
4
- data.tar.gz: f78130706c3241d68cab6508acd477bbaa350dda
3
+ metadata.gz: da022b5df3afeaed17575f337eeed42f918e6844
4
+ data.tar.gz: 9332b7fbbefb9c774776d877b8de22ecb81aab92
5
5
  SHA512:
6
- metadata.gz: f8c7eb2eed9222e561c47234520d2158b21aa552f80c3b30dc0486a98ea1d07fc5e2655bbe76bc6368f2ced4bc07b0d10f408ec9d2346c504945c34e03215f6c
7
- data.tar.gz: 38df687787843ffe946761d3990d631d486d9e9f648162fe0576cacd37cea8af211ee61d78fa52e6585a4d130d916cb9243212f05796ecf058d071710689315b
6
+ metadata.gz: 7d1a7c89d8eedfb64b07ebd69e9b90972e29a2e47cde4b4a354e87cc2773b6972162635d6fbdfbeb21c91b87ba3ac2bbae661447d00378b0a917bef46653a133
7
+ data.tar.gz: 71b560970dba82294045362445b55b6e13222e9bca1c037e7eab7e47b59c20b46f40a83def2aa91f667d262f158627866573067c6fe2587d58de5bec8f651482
@@ -1,3 +1,7 @@
1
+ ## 0.1.7 / July 30 2015
2
+
3
+ * Be able to log exceptions #15.
4
+
1
5
  ## 0.1.6 / March 20 2015
2
6
 
3
7
  * Fix incompatible character encodings #13.
@@ -75,6 +75,11 @@ module ActFluentLoggerRails
75
75
  def add_message(severity, message)
76
76
  @severity = severity if @severity < severity
77
77
 
78
+ if message.is_a? Exception
79
+ error_message = message.message + "\n" + message.backtrace.join("\n") + "\n"
80
+ message = error_message
81
+ end
82
+
78
83
  if message.encoding == Encoding::UTF_8
79
84
  @messages << message
80
85
  else
@@ -1,3 +1,3 @@
1
1
  module ActFluentLoggerRails
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act-fluent-logger-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAHARA Yoshinori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec