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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9ce75dd0eff3e41e88a1d1cdb0f2aec6749e379
4
- data.tar.gz: 3f72974630d435e0d785cc223ede59dc55492a50
3
+ metadata.gz: 057a2efab83b7f51a8e1a6984d13a2b54182dd7c
4
+ data.tar.gz: 036af37ea9f1e539ebf42c1947b999e3ab4d00af
5
5
  SHA512:
6
- metadata.gz: 0273ae68ed1755306f0e44ba2590e90bb654b657b901bafa7bdf5466a344f410493dce54791549a38404d694ca50395deb7cb4cf43fc339747672df5af8d9d43
7
- data.tar.gz: 8f54ff6180c6eaf9d6e195db73ba3979fd95cb76d0c3d0bde0eacdd0fa2d49144603d3689af646d7ee52d887ec13da4c7d3f7bef69c0a4925dc07b6e3eb517a8
6
+ metadata.gz: d694c9a191e041300c17f185e711560b12bbceedff5c7ec206df8cd5089777fcc1c1a95b0efb42d2e70dbbb348dfb6138fe3b8b7a33f5499b28714f11dabf4be
7
+ data.tar.gz: e86d7c11f1df4cf66ef11c19c4e2b6c9c1c5bf42d3d1652cad6ff5c31671ecc6f2032abcc33b97c978feaef5b57e61155e9ccbd58d78e11d1dae3a1add955f4f
@@ -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
- "#{time} Pid:#{pid} Level:#{sev}: #{formatted}\n"
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
 
@@ -1,4 +1,4 @@
1
1
  # Toiler Version
2
2
  module Toiler
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
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.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-14 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler