Mason McLead
6546c93512
renaming to :condensed
2017-06-02 10:20:07 -07:00
Mason McLead
4276cd642a
adding an option to format log message to be one line
2017-06-02 09:59:00 -07:00
Keisuke Yamamoto
b52ea9adeb
Bugfix, logic optimization, correct code format
...
- Fix typo in README
- Replace tab character with spaces and correct wrong indents.
- Bugfix: headers are not sorted by keys when the option is `:all`
- Optimize filtering logic
2017-04-21 14:13:57 +09:00
Keisuke Yamamoto
753b94ecb0
Add 'headers' option to log request headers.
2017-04-20 12:40:38 +09:00
Nikita Bulaj
2c7126f171
Log exception class name
2016-09-16 13:05:55 +03:00
Ryan Buckley
c5ba92d9bd
Remove nasty hack now that we have +insert_after+
...
* No longer necessary because of the middleware stack added in https://github.com/ruby-grape/grape/pull/1390
2016-05-12 19:46:40 +08:00
Ryan Buckley
9023f78639
Remove unused accessor
2016-04-11 10:55:48 -07:00
Ryan Buckley
6c2559c8ec
Revert change that separates param parsing strategy depending on presence of Rails
2016-04-01 09:23:25 -07:00
Ryan Buckley
fd5c616aab
Reorganize usage of Rails specific parameters
2016-03-31 23:46:54 -07:00
Ryan Buckley
f4c8b71993
Overload Grape::Middleware::Formatter#before in a Ruby 1.9.3 friendly way
2016-03-31 23:00:30 -07:00
Ryan Buckley
725a888bc5
Isolate manual param parsing to when Rails is not loaded
2016-03-31 22:37:59 -07:00
Ryan Buckley
41eeaaaeab
[ #4 ] Fix missing JSON parameters for POST requests
...
- Call the formatter middleware manaully to parse env['rack.input'] and set the grape request body early
- Overload the formatter's #before method so we don't parse the input twice
- Wouldn't be an issue if Grape::Endpoint would #use custom middleware after using formatter
2016-03-31 22:27:24 -07:00
Ryan Buckley
2fb66159e5
Update format of processing by path and include namespace
2016-03-31 22:19:39 -07:00
Ryan Buckley
7969c9daca
Refactor logger conditional to use coercion and parallel assignment
2015-12-14 18:10:26 -08:00
Ryan Buckley
ea4503558d
update railtie load order
2015-12-12 01:02:05 -08:00
Ryan Buckley
b2491299ed
use railtie
2015-12-12 00:05:32 -08:00
Ryan Buckley
9a0326ff09
Stop logging the namespace
2015-12-11 23:13:18 -08:00
Ryan Buckley
83e5029bbe
fix bug with modifying frozen string 😅
2015-12-11 23:01:49 -08:00
Ryan Buckley
0074920292
It's getting cold in here
2015-12-11 22:27:06 -08:00
Ryan Buckley
2e2b14e557
freeze all freezable strings
2015-12-11 22:16:05 -08:00
Ryan Buckley
fd48c9a79b
some minor cleanup
2015-12-11 21:08:14 -08:00
Ryan Buckley
4e960deb57
replace default logger with a proc
2015-12-11 21:04:40 -08:00
Ryan Buckley
5959a06cce
add and reorganize specs with factory girl
2015-12-11 19:55:05 -08:00
Ryan Buckley
2253c1be19
improve default logger
2015-12-11 16:34:20 -08:00
Ryan Buckley
14ff80ff7a
replace to_default_s with to_s
2015-12-11 15:47:08 -08:00
Ryan Buckley
ddd39f2408
Add start time to first log message
2015-12-11 15:44:45 -08:00
Ryan Buckley
39ba3f2d8f
Refactor #logger into initialize
2015-12-08 16:54:45 -08:00
Ryan Buckley
8170bd5f74
remove version.rb and the associated hack for loading it
2015-11-26 22:53:59 -10:00
Ryan Buckley
bddf956d57
version 1.1.1
2015-11-18 13:22:58 -08:00
sirnicolaz
a4daa56c53
add tests for array response behaviour
2015-11-18 11:56:52 +01:00
tinexw
c0327a4b8d
Return @app_response as returned by @app.call
2015-11-17 01:13:40 +01:00
tinexw
7ba0dba6fa
app_response is not always a rack response object
2015-11-17 00:42:32 +01:00
Ryan Buckley
5c7d8b21a0
version 1.1.0
2015-10-23 11:16:36 -07:00
Marcelo Boeira
df7266f144
use Rails logger by default when is set, instead of default logger
2015-10-22 15:38:51 -02:00
Marcelo Boeira
982c8ad888
refactor logger to not use hierarchical namespaced structure
2015-10-22 15:33:01 -02:00
Ryan Buckley
909c6e79aa
version 1.0.0
2015-07-11 12:41:34 -07:00
Ryan Buckley
166dd7ee9a
update to work with Grape 0.12.0 and log exceptions
2015-07-11 12:41:22 -07:00
Ryan Buckley
e3d6a3be65
be more positive
2015-05-09 02:11:28 -07:00
Ryan Buckley
f842b399d6
version 0.1.2 w/ some cleanup
2015-05-07 20:23:12 -07:00
Ryan Buckley
4cac0e0ac0
use +before+ because it works on Grape master
2015-05-05 22:42:17 -07:00
Ryan Buckley
d65714ffd8
Specs and update to handle broken state of Grape Globals
2015-05-05 22:22:35 -07:00
Ryan Buckley
a1191bfc15
Launch this thingy 😅
2015-05-05 20:20:23 -07:00