rack_xrk_log 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12ea05beb337bc3d8c200bbb345287f6c6419327
4
- data.tar.gz: 21e85fe05497a5e0765e778adb2cfc22ce35d2a2
3
+ metadata.gz: 46f7acbc863218390d45ee1b5283d0de650a6bb7
4
+ data.tar.gz: 2ff82d61cc08dc035f89befd0845e69756d905f7
5
5
  SHA512:
6
- metadata.gz: 87302547e213ff96eaca2cd494d7a13f71423ad3ff02820477f083b73a55ff31ba6168824f6394c4683f9400471fe503ce489fc47afee3ddd7a94c96da17149d
7
- data.tar.gz: 1a8d673d13927b5c7c164e38ff8ed6c4435b505c29d141945ef354e63a72ccf3be9a01e3db7daf66a562cea19c32e8b09c7399ec2405b2a918cde4d019c322fc
6
+ metadata.gz: 8d9de54acde921e8bb97d7d420c007bc0f05a61fbe4db6169b4fc6c09311f8299ab61ad977f118196857914b9db0cd9afd415fb3ef9f8ac68162119b3796cdc1
7
+ data.tar.gz: 11c7797ed44d1ea7ba39c5d27f3a021d3fb1947a57b964599389f11474dbfff0425c0a2e2c8a298b1000ec833c811402c821305c81fa5bee160f2e0265e1a7ac
@@ -4,11 +4,7 @@ module Rack
4
4
  attr_accessor :app, :logger, :app_name, :begin_at, :log_type
5
5
 
6
6
  def initialize(app)
7
- if app.class.parent_name.present?
8
- app_name = app.class.parent_name.downcase
9
- else
10
- app_name = app.class.name.downcase
11
- end
7
+ app_name = @@app_name
12
8
  @app = app
13
9
  @log_type = "ACCESS"
14
10
  @logger = ::Logger.new("log/#{app_name}_quality_access.log")
@@ -16,7 +16,7 @@ module Rack
16
16
 
17
17
  client_ip_and_port = "#{@request.ip}:#{@request.port}"
18
18
  server_ip_and_port = "#{env['SERVER_NAME']}:#{env['SERVER_PORT']}"
19
- query_string = @request.query_string.blank? ? "-" : @request.query_string
19
+ query_string = @request.query_string.blank? ? "" : @request.query_string
20
20
 
21
21
  [
22
22
  client_ip_and_port,
data/lib/rack/xrk/log.rb CHANGED
@@ -3,7 +3,7 @@ require 'rack/xrk/log/commonlogger'
3
3
  module Rack
4
4
  module Xrk
5
5
  module Log
6
- VERSION = '0.2.4'
6
+ VERSION = '0.2.5'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_xrk_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Liu