toiler 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toiler/utils/logging.rb +5 -1
- data/lib/toiler/version.rb +1 -1
- 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: 057a2efab83b7f51a8e1a6984d13a2b54182dd7c
|
4
|
+
data.tar.gz: 036af37ea9f1e539ebf42c1947b999e3ab4d00af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d694c9a191e041300c17f185e711560b12bbceedff5c7ec206df8cd5089777fcc1c1a95b0efb42d2e70dbbb348dfb6138fe3b8b7a33f5499b28714f11dabf4be
|
7
|
+
data.tar.gz: e86d7c11f1df4cf66ef11c19c4e2b6c9c1c5bf42d3d1652cad6ff5c31671ecc6f2032abcc33b97c978feaef5b57e61155e9ccbd58d78e11d1dae3a1add955f4f
|
data/lib/toiler/utils/logging.rb
CHANGED
@@ -11,7 +11,11 @@ module Toiler
|
|
11
11
|
formatted = msg.respond_to?(:gsub) ? msg.gsub("\n", "\n\t") : msg
|
12
12
|
time = time.utc.iso8601
|
13
13
|
pid = Process.pid
|
14
|
-
|
14
|
+
if progname.nil? || progname.empty?
|
15
|
+
"#{time} Pid:#{pid} Level:#{sev}: #{formatted}\n"
|
16
|
+
else
|
17
|
+
"#{time} Pid:#{pid} Actor:#{progname} Level:#{sev}: #{formatted}\n"
|
18
|
+
end
|
15
19
|
end
|
16
20
|
end
|
17
21
|
|
data/lib/toiler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Schepens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|