RubyApp 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/ruby_app/log.rb +2 -1
- data/lib/ruby_app/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/ruby_app/log.rb
CHANGED
@@ -4,6 +4,7 @@ require 'bundler/setup'
|
|
4
4
|
require 'facets/string/interpolate'
|
5
5
|
require 'fileutils'
|
6
6
|
require 'logger'
|
7
|
+
require 'socket'
|
7
8
|
|
8
9
|
module RubyApp
|
9
10
|
require 'ruby_app'
|
@@ -16,7 +17,7 @@ module RubyApp
|
|
16
17
|
class Formatter < ::Logger::Formatter
|
17
18
|
|
18
19
|
def call(severity, time, application, message)
|
19
|
-
return "#{severity} | #{time.strftime('%Y-%m-%d %H:%M:%S %Z')} | #{
|
20
|
+
return "#{severity} | #{time.strftime('%Y-%m-%d %H:%M:%S %Z')} | #{Socket.gethostname} | #{RubyApp::Session.exists? ? RubyApp::Session.session_id : '-'} | #{RubyApp::Session.exists? && RubyApp::Session.identity ? RubyApp::Session.identity.url : '-'} | #{message}\n"
|
20
21
|
end
|
21
22
|
|
22
23
|
end
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|