franz 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/franz/input.rb +1 -2
- data/lib/franz/logger.rb +2 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cf1ac1563f7fefe2eaa7b8734dc4a61f994eb45
|
4
|
+
data.tar.gz: 959e4178e46f5f67d4198aafdf8edac7d1e677ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae60dd86a2fbc863f5b2158e240fd3f6b9a819c41171a13cbed37afea872ca033a36c73760cdbd87749803cd679721c93e2547e23eb5ad2f60b63f84594a61e
|
7
|
+
data.tar.gz: c6e61eb90bc7f4fd32d900e26eb263e9af715ee048ba9473dc07f72fbd171466121ed1950e27b481c50f38fd3a624d706eb2ac4da4e4947259f27ce30d398652
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.8
|
data/lib/franz/input.rb
CHANGED
data/lib/franz/logger.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'socket'
|
2
1
|
require 'logger'
|
3
2
|
require 'time'
|
4
3
|
|
@@ -6,7 +5,6 @@ require 'colorize'
|
|
6
5
|
|
7
6
|
|
8
7
|
module Franz
|
9
|
-
HOSTNAME = Socket.gethostname
|
10
8
|
|
11
9
|
# Extending the Logger with TRACE capabilities
|
12
10
|
class ::Logger
|
@@ -53,10 +51,8 @@ module Franz
|
|
53
51
|
message = { message: message } unless message.is_a? Hash
|
54
52
|
|
55
53
|
event = {
|
56
|
-
level
|
57
|
-
'@timestamp' => datetime.iso8601(3)
|
58
|
-
marker: File::basename(caller[4]),
|
59
|
-
host: HOSTNAME
|
54
|
+
'level' => severity,
|
55
|
+
'@timestamp' => datetime.iso8601(3)
|
60
56
|
}.merge message
|
61
57
|
|
62
58
|
if colorize # console output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: franz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|