imprint 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ if defined?(ActiveSupport::BufferedLogger)
23
23
  # If a newline is necessary then create a new message ending with a newline.
24
24
  # Ensures that the original message is not mutated.
25
25
  message = "#{message}\n" unless message[-1] == "\n"
26
- if (defined?(Imprint::Tracer)) && message && message.is_a?(String) && message.length > 1 && Imprint::Tracer.get_trace_id
26
+ if (defined?(Imprint::Tracer)) && message && message.is_a?(String) && message.length > 1 && Imprint::Tracer.get_trace_id && !message.include?('trace_id=')
27
27
  message = message.gsub("\n"," [trace_id=#{Imprint::Tracer.get_trace_id}]\n")
28
28
  end
29
29
  @log.add(severity, message, progname, &block)
@@ -42,7 +42,7 @@ if defined?(ActiveSupport::Logger::SimpleFormatter)
42
42
  # If a newline is necessary then create a new message ending with a newline.
43
43
  # Ensures that the original message is not mutated.
44
44
  message = "#{message}\n" unless message[-1] == "\n"
45
- if (defined?(Imprint::Tracer)) && message && message.is_a?(String) && message.length > 1 && Imprint::Tracer.get_trace_id
45
+ if (defined?(Imprint::Tracer)) && message && message.is_a?(String) && message.length > 1 && Imprint::Tracer.get_trace_id && !message.include?('trace_id=')
46
46
  message = message.gsub("\n"," [trace_id=#{Imprint::Tracer.get_trace_id}]\n")
47
47
  end
48
48
  message
@@ -1,3 +1,3 @@
1
1
  module Imprint
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: 2235675545014840882
147
+ hash: 3877856315896039498
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 2235675545014840882
156
+ hash: 3877856315896039498
157
157
  requirements: []
158
158
  rubyforge_project:
159
159
  rubygems_version: 1.8.23