RUL 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/lib/rul.rb +1 -0
- data/lib/rul/rul.rb +2 -1
- data/rul.gemspec +1 -1
- metadata +1 -1
data/Gemfile
CHANGED
data/lib/rul.rb
CHANGED
data/lib/rul/rul.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
module RUL
|
2
2
|
module Logging
|
3
|
+
@@uuid = UUID.new
|
3
4
|
|
4
5
|
def self.included(base)
|
5
6
|
base.class_eval do
|
@@ -8,7 +9,7 @@ module RUL
|
|
8
9
|
end
|
9
10
|
|
10
11
|
def add_with_uuid_info severity, message=nil, progname=nil, &block
|
11
|
-
uuid =
|
12
|
+
uuid = (Thread.current[:uuid] ||= @@uuid.generate)
|
12
13
|
unless message.include?(uuid)
|
13
14
|
message = "#{uuid} - #{message}"
|
14
15
|
end
|
data/rul.gemspec
CHANGED