cloudwatchlogger 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudwatchlogger/client.rb +2 -1
- data/lib/cloudwatchlogger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17994bb84e5d5609af00c3070dd2bced4ee62e6
|
4
|
+
data.tar.gz: 8efdb64ae010cdf433cc989e5148db191626d9fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 082cb521281d5086725d7fa8f9a013916651c0d765a70879ca2cc8c8aaaf2289ec916cc9421ff3c554d839b4c6e2d069f9397093ae588cf2cbef395efabb108a
|
7
|
+
data.tar.gz: 48c14c6ee5a121d5456904c5b9c9530597de71c63b17091c5501d1c212634947b818c81d1f376d16fdd5cc077bfd1ebee027bce34ccc05abf854907262bea738
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'multi_json'
|
2
2
|
require 'socket'
|
3
|
+
require 'thread'
|
3
4
|
require 'uuid'
|
4
5
|
|
5
6
|
module CloudWatchLogger
|
@@ -52,7 +53,7 @@ module CloudWatchLogger
|
|
52
53
|
def massage_message(incoming_message, severity, processid)
|
53
54
|
outgoing_message = ""
|
54
55
|
|
55
|
-
outgoing_message << "pid=#{processid}, severity=#{severity}, "
|
56
|
+
outgoing_message << "pid=#{processid}, thread=#{Thread.current.object_id}, severity=#{severity}, "
|
56
57
|
|
57
58
|
case incoming_message
|
58
59
|
when Hash
|