falcon 0.19.5 → 0.19.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/examples/beer/config.ru +2 -0
- data/lib/falcon/adapters/rack.rb +1 -1
- data/lib/falcon/verbose.rb +2 -10
- data/lib/falcon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c09541c3301a05218ed04a87672b46a5d1b715f106cea0e521a99abe08acd4b3
|
4
|
+
data.tar.gz: aea4dd96271c20a0ad58797a88a463302b673d3c8eb8c76637248cf7723884da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cedf78004e71300083ea4b514e550fac70368dde871be8942c8b37940f2c50356b76997c9f575470a4379536ee366af87876726a9a9cc677424873a44103a1a4
|
7
|
+
data.tar.gz: 7cef15900bcf69b2ac7a240abf08d2ca34ec84bf1d44710dc27f406ccf2aa6f6b77d5724d73a72cb0fdb11d8ce00410d6dbe0869549ffee70d3b3fa86b388f10
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Falcon is a multi-process, multi-fiber rack-compatible HTTP server built on top
|
|
4
4
|
|
5
5
|
[Priority Business Support](#priority-business-support) is available.
|
6
6
|
|
7
|
-
[![Build Status](https://
|
7
|
+
[![Build Status](https://travis-ci.com/socketry/falcon.svg)](http://travis-ci.com/socketry/falcon)
|
8
8
|
[![Code Climate](https://codeclimate.com/github/socketry/falcon.svg)](https://codeclimate.com/github/socketry/falcon)
|
9
9
|
[![Coverage Status](https://coveralls.io/repos/socketry/falcon/badge.svg)](https://coveralls.io/r/socketry/falcon)
|
10
10
|
[![Gitter](https://badges.gitter.im/join.svg)](https://gitter.im/socketry/falcon)
|
data/examples/beer/config.ru
CHANGED
data/lib/falcon/adapters/rack.rb
CHANGED
@@ -83,7 +83,7 @@ module Falcon
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def make_response(request, status, headers, body)
|
86
|
-
@logger.debug(request) {"Rack response: #{status} #{headers.inspect} #{body.class}"}
|
86
|
+
# @logger.debug(request) {"Rack response: #{status} #{headers.inspect} #{body.class}"}
|
87
87
|
|
88
88
|
return Response.wrap(status, headers, body)
|
89
89
|
end
|
data/lib/falcon/verbose.rb
CHANGED
@@ -33,11 +33,7 @@ module Falcon
|
|
33
33
|
task = Async::Task.current
|
34
34
|
address = request.remote_address
|
35
35
|
|
36
|
-
@logger.
|
37
|
-
|
38
|
-
# if ENV['REQUEST_HEADERS']
|
39
|
-
# @logger.debug(request.authority) {request.headers.inspect}
|
40
|
-
# end
|
36
|
+
@logger.info(request.authority) {"#{request.method} #{request.path} #{request.version} #{request.headers.to_h} from #{address.inspect}"}
|
41
37
|
|
42
38
|
task.annotate("#{request.method} #{request.path} from #{address.inspect}")
|
43
39
|
end
|
@@ -50,11 +46,7 @@ module Falcon
|
|
50
46
|
response = super
|
51
47
|
|
52
48
|
statistics.wrap(response) do |statistics, error|
|
53
|
-
@logger.info(request.authority) {"#{request.method} #{request.path} #{request.version} -> #{response.status}; #{statistics.inspect}"}
|
54
|
-
|
55
|
-
# if ENV['RESPONSE_HEADERS']
|
56
|
-
# @logger.info response.headers.inspect
|
57
|
-
# end
|
49
|
+
@logger.info(request.authority) {"#{statistics.object_id}] #{request.method} #{request.path} #{request.version} -> #{response.status} #{response.headers.to_h}; #{statistics.inspect}"}
|
58
50
|
|
59
51
|
@logger.error(request.authority) {"#{error.class}: #{error.message}"} if error
|
60
52
|
end
|
data/lib/falcon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-protocol
|